Chronoforms v6 do not check fields inside SP Page Builder 2.4.5

Panosgr 18 May, 2017
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!!!
Max_admin 18 May, 2017
Hi Pansgr,

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

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Panosgr 19 May, 2017
When i am using the form (outside page builder) is working fine and the code it produces is the following


<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>




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 "

Chronoforms v6 do not check fields inside SP Page Builder 2.4.5 image 1
Panosgr 19 May, 2017
Answer
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 " to " and that conversion causes the problem
This topic is locked and no more replies can be posted.