Appnitro Software Forums » MachForm

Rich text entry

(4 posts)
  • Started 7 months ago by jessevickey
  • Latest reply from redityo

  1. jessevickey
    Member

    Is there a way to allow for rich text entry (bold, italics, etc) into a field?

    Posted 7 months ago #
  2. Hi,

    If you only need to format label field , simply add a HTML tags in "Field Label" text box when you edit the form. For example :

    <b>This is field label </b>

    but if you want to input value to be formatted, after use a HTML tags; you need to edit "view-entry.php" file. Go to around line 132 ~ 139 and you will see these code :

    foreach ($entry_details as $data){
    	if($toggle){
    		$toggle = false;
    		$row_style = 'class="alt"';
    	}else{
    		$toggle = true;
    		$row_style = '';
    	}

    then put these code exactly bellow that line

    $data['value'] = html_entity_decode($data['value'],ENT_QUOTES);
    $data['value'] = strip_tags($data['value'],'<b><i><a><br><img>');
    Posted 7 months ago #
  3. jessevickey
    Member

    Using this code, would a user still need to enter HTML tags in the field?

    I'm looking for a way to allow a user to copy and paste rich text from a Word file into the text field.

    Thanks.

    Posted 7 months ago #
  4. Sorry I'm afraid it's not possible, user still need to enter "HTML" tag in the field

    Posted 7 months ago #

RSS feed for this topic

Reply

You must log in to post.