CMS MADE SIMPLE FORGE

CGBetterForms

 

[#12038] Display Form Inline causes IDs in hiddenfields to no longer match

avatar
Created By: Phil Scoltock (mantapro)
Date Submitted: Thu May 09 19:41:57 -0400 2019

Assigned To: Robert Campbell (calguy1000)
Version: 1.9.5
CMSMS Version: 2.2.10
Severity: Critical
Resolution: Fixed
State: Open
Summary:
Display Form Inline causes IDs in hiddenfields to no longer match
Detailed Description:
Calguy informed in the forum that CGBF action.defualt.php msg of "Please specify
a form name when calling CGBetterForms" is due to the IDs in these 2 hidden
fields not matching

<input type="hidden" name="returnid" value="90">
<input type="hidden" name="mec75cform" value="More advanced contact form">
<input type="hidden" name="mact"
value="CGBetterForms,cntnt01,default,0&amp;amp;cntnt01returnid=1">
<input type="hidden" name="__guid" value="B3CF296C-205C-46B6-B484-239B9B985B99">
<input type="text" style="display: none;" name="__hpname" value="">
</form>

In the above - the "mec75cform" in the 2nd line and "cntnt01" in the mact 3rd
line the "cntnt01" should be "mec75cform" in this instance.

This behaviour is trigger by the "Display form Inline setting on the "form" tab
in CGBF. If set to inline=No then these IDs are identical; if set to Inline=Yes
then the mact is set to "cntnt01"

The above was proved by simply taking the Advanced Contact Form that comes as
stock with the CGBF; remove the "<foo>" tag and set Inline=yes and select a
handler e.g. send email to fixed address - the form submission then fails


History

Comments
avatar
Date: 2019-05-14 19:01
Posted By: Robert Campbell (calguy1000)

Fixed in svn
      
avatar
Date: 2019-07-27 15:27
Posted By: Tristan (tristan)

Still present in 1.9.9.1
      
Updates

Updated: 2019-05-14 19:01
resolution_id: => 7