After form validation field content turns into Array
Posted: Fri Sep 06, 2013 12:34 pm
cmsms 1.11.7
Formbuilder 0.7.3
When creating a new form and setting the content of a certain field to a variable, like this:
{FormBuilder form='user_details' value_myname='$some_string'}
I get the following warning message after validation:
Warning: strlen() expects parameter 1 to be string, array given in /home/lenter1q/public_html/tiwaz.nl/modules/FormBuilder/classes/TextField.class.php on line 160
The content of the field changes to Array as well.
It looks like the validation adds the current field value to the value_myname and forms an Array. The field is not editable by the user, but the user must be able to see the field value.
Obviously this is not what I want, I want the field to display the $some_string value again. I hope someone can help.
Formbuilder 0.7.3
When creating a new form and setting the content of a certain field to a variable, like this:
{FormBuilder form='user_details' value_myname='$some_string'}
I get the following warning message after validation:
Warning: strlen() expects parameter 1 to be string, array given in /home/lenter1q/public_html/tiwaz.nl/modules/FormBuilder/classes/TextField.class.php on line 160
The content of the field changes to Array as well.
It looks like the validation adds the current field value to the value_myname and forms an Array. The field is not editable by the user, but the user must be able to see the field value.
Obviously this is not what I want, I want the field to display the $some_string value again. I hope someone can help.