CMS MADE SIMPLE FORGE

Form Builder

 

[#7477] Javascript Error on Sample Form

avatar
Created By: Dan Ross (epic)
Date Submitted: Wed Jan 18 11:41:38 -0500 2012

Assigned To: Tapio Löytty (Stikki)
Version: 0.7.1
CMSMS Version: None
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
Javascript Error on Sample Form
Detailed Description:
Javascript Error produced by IE:
Message: Expected ')'
Line: 195
Char: 274
Code: 0
URI:
http://example.com/cmsmadesimple/admin/moduleinterface.php?mact=FormBuilder,m1_,admin_add_edit_form,0&_sx_=88632b9f&m1_form_id=3

The html generated snippet reads:
onclick="jQuery(this).fb_delete_field('Are you sure you want to delete the field
Modules you'll be using together?'); return false;"

The single quote in you'll is breaking the string for fb_delete_field.

I attempted this change but it did not work:

# diff Sample_Form.xml.old Sample_Form.xml
158c158
< <strong>Modules you'll be using together</strong>:
{$modules_you_ll_be_using}<br />
---
> <strong>Modules you will be using together</strong>:
{$modules_you_ll_be_using}<br />
190c190
<                       <field_name><![CDATA[Modules you'll be using
together]]></field_name>
---
>                       <field_name><![CDATA[Modules you will be using
together]]></field_name>


History

Comments
avatar
Date: 2012-01-21 05:41
Posted By: Tapio Löytty (Stikki)

Ryan testing this when he has time.

-Stikki-
      
avatar
Date: 2013-09-02 15:50
Posted By: Tapio Löytty (Stikki)

0.7.4 is out. Closing. If this still occurs, open new ticket.
      
Updates

Updated: 2013-09-02 15:50
assigned_to_id: 13490 => 11306

Updated: 2013-09-02 15:50
resolution_id: 6 => 7
cmsms_version_id: 29321 => -1
state: Open => Closed

Updated: 2012-01-21 05:41
resolution_id: => 6
assigned_to_id: 100 => 13490