Buy Now
Sign in

Chronoforms v6 do not check fields inside SP Page Builder 2.4.5

Panosgr , May 18 2017
Answered
P
Panosgr

Hi there.
I am using Chronoforms v6 and i think it is awesome.

I have one significant problem.
I am using SP Page Builder and till now when i was using chronoforms v5 and loading a CF module inside sp page builder, everything works just fine.

When i am loading cf 6 module the fields does not validate (required) and the form is send without checking.
I have check with the same template the CF v5 and everything works like a charm (there is no some kind of confilct).

TIP: When i am using a typical menu with the same cf6 form, the validation works fine!!!

admin

Hi Pansgr,

Then something on SP page builder conflicts with v6, I can't tell what without testing the page.

Best regards,
Max

Max
If your main question got answered then please mark the answer using the button!

P
Panosgr

When i am using the form (outside page builder) is working fine and the code it produces is the following

				
<select data-validationrules="{&quot;identifier&quot;:&quot;title_id-main&quot;,&quot;rules&quot;:[{&quot;type&quot;:&quot;empty&quot;,&quot;prompt&quot;:&quot;Please select a title&quot;},{&quot;type&quot;:&quot;required&quot;,&quot;prompt&quot;:&quot;Title&quot;}]}" data-validate="title_id-main" data-events="[]" name="title" id="title_id" data-mincharacters="0" type="select" class="ui dropdown" ><option value="" ></option>
<option value="mr" >Mr.</option>




When i am loading the module inside the page builder, the code is the following (in red lines, when i am seeing the code in page source)


				<select data-validationrules="{"identifier":"title_id-main","rules":[{"type":"empty","prompt":"Please select a title"},{"type":"required","prompt":"Title"}]}" data-validate="title_id-main" data-events="[]" name="title" id="title_id" data-mincharacters="0" type="select" class="ui dropdown" ><option value="" ></option>
<option value="mr" >Mr.</option>



The only difference is that inside the page builder there is " instead of &quot;

http://imgur.com/a/2L2Vd

P
P
Panosgr

So, for future reference

components\com_sppagebuilder\parser\addon-parser.php

line 317

Change this

				return htmlspecialchars_decode(AddonParser::spDoAddon($output));
				


to
				return htmlspecialchars_decode(AddonParser::spDoAddon($output), ENT_NOQUOTES);
				


This line converts &quot; to " and that conversion causes the problem