Passing Default Values to Forms with special character's
Posted: Fri Feb 07, 2025 2:12 pm
I'm using FormBuilder 1.2 to edit a LISEInstance and passing default values from LISE to the form.
But if a LISE field contains special character's and the reciving FormBuilder Field is a Text Field the special character's are converted into its HTML entity ex. I've tried escape, unescape and replace, but all actions are ignored.
If the default value, containing special character's, are targeted at a FormBuilder Text Area, Hidden Field etc. the special character's are displayed correctly.
Am i missing something or could it be a bug in FormBuilder Text Fields?
Code: Select all
{$ServerName = $item->title}
{FormBuilder form='my_form' value_fld877=$ServerName}
Code: Select all
apostrophe ' converts to '
If the default value, containing special character's, are targeted at a FormBuilder Text Area, Hidden Field etc. the special character's are displayed correctly.
Am i missing something or could it be a bug in FormBuilder Text Fields?