CMS MADE SIMPLE FORGE

Form Browser

 

[#11637] Email addresses enter FormBrowser "HumanReadable" field as simply "Array"

avatar
Created By: Stuart Pinfold (spinfold)
Date Submitted: Tue Nov 07 04:53:08 -0500 2017

Assigned To:
Version: 0.5
CMSMS Version: 2.2.1
Severity: Major
Resolution: None
State: Open
Summary:
Email addresses enter FormBrowser "HumanReadable" field as simply "Array"
Detailed Description:
I have setup FormBrowser to get a list of all enquiries submitted through the
website.

The email field is setup in FormBuilder as "Email From Address field". There is
no "Email From Address Again field" in this form.

When submitting the form, an entry is created in FormBrowser but the email
address displays simply as "Array". Clicking to edit the entry results in the
first letter of the email address being displayed only.

This is also the case when manually adding an entry in FormBrowser.

Looking into the database, it seems to be reading the "HumanReadable" field in
the XML "response" field in prefix_module_fb_formbrowser. For example:

	<field id="30"
		type="FromEmailAddressField"
		validation_type="email"
		order_by="3"
		required="1"
		hide_label="0"
		display_in_submission="1">
			<field_name><![CDATA[Email Address]]></field_name>
			<options>
			<option name="send_user_copy"><![CDATA[n]]></option>
			<option name="file_attachment_copy"><![CDATA[0]]></option>
			<option name="send_user_label"><![CDATA[Send me a copy of form]]></option>
			<option name="headers_to_modify"><![CDATA[b]]></option>
			<option name="field_alias"><![CDATA[]]></option>
			<option name="css_class"><![CDATA[]]></option>
			<option name="helptext"><![CDATA[]]></option>
			<option name="javascript"><![CDATA[]]></option>
			<option name="field_logic"><![CDATA[]]></option>
			<option name="html5"><![CDATA[0]]></option>
			<option name="default"><![CDATA[]]></option>
			<option name="clear_default"><![CDATA[0]]></option>
			<option name="is_valid"><![CDATA[1]]></option>
			<value><![CDATA[email@address.net]]></value>
			</options>
			<human_readable_value><![CDATA[Array]]></human_readable_value>
</field>

As you can see, the real email address is going in the "Value" field, but only
"Array" is going into the "Human Readable Value" fields, which is what is being
used to display the data.


History