What's New
Viewing 15 posts - 1 through 15 (of 15 total)
Viewing 15 posts - 1 through 15 (of 15 total)
You must be logged in to reply to this topic.
Hi,
We have an issue on jscomposer and the checkbox from psgdpr module. We use gformbuilderpro module to show a form on a page built with jscomposer. Also, the gformbuilderpro use the checkbox from psgdpr module. The issue is that this checkbox from psgdpr module can not be checked when is used under jscomposer module, but it works fine without jscomposer module. Can you help me? Here there is an example: https://www.farmaciaareitio.com/informacion/analisis-de-piel-11
Thanks.
Hi,
It seems the VC module covers new line to
, I modified the /themes/transformer/modules/psgdpr/views/templates/hook/displayGDPRConsent.tpl file to fix it for you, please add the following code to the “Custom CSS Code” under Theme editor > Custom codes:
.gdpr_module_141{margin-top: 56px;}
Best regards.
Here you have an example where the checkbox have to be checked to send the form: https://www.farmaciaareitio.com/form/cita-analisis-g3.html
But under VC it does not happen.
Hi,
The VC module removed the js code for the gdpr, please add the following code to the “Custom javascript code” under Theme editor > Custom codes:
jQuery(function($){
var toggleFormActive = function() {
$('input[name=psgdpr_consent_checkbox]').each(function(){
var parentForm = $(this).closest('form');
if ($(this).prop('checked') == true) {
parentForm.find('[type="submit"]').removeAttr('disabled');
} else {
parentForm.find('[type="submit"]').attr('disabled', 'disabled');
}
});
}
// Triggered on page loading
toggleFormActive();
$('body').on('change', function(){
// Triggered after the dom might change after being loaded
toggleFormActive();
// Listener ion the checkbox click
$(document).on("click" , "input[name=psgdpr_consent_checkbox]", function() {
toggleFormActive();
});
});
});
Best regards.
You must be logged in to reply to this topic.