Aleš Sýkora wrote

Change GDPR field response data in Fluent Forms

15. 4. 2021 in

If you want to change the “Accepted” to something else, use the first snippet and change the $response variable.

//Change only GDPR response data
add_filter('fluentform_response_render_gdpr_agreement','gdprText',20,4);
function gdprText($response, $field, $form_id, $isLabel){
    if($form_id=36){
        $response = 'True';
        return $response;
    }
    return;
}

If you want to change the Terms and Condition and GDPR field response, use this code:

//Change both GDPR & Terms and Condition Response data 
$types = [
    'gdpr_agreement',
    'terms_and_condition',
];
foreach($types as $type){
    add_filter('fluentform_response_render_'.$type,'changeGdprText',20,4);
}
function changeGdprText($response, $field, $form_id, $isLabel){
    if($form_id=36){
        $response = 'True';
        return $response;
    }
    return;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from category
Aleš Sýkora wrote
Oxygen’s Number Counter tricks – Dynamic data, speed and more
14. 7. 2021 in ,
All tips should be working for both Number Counter composite element and Circle Number Counter composite element in Oxygen Builder for WordPress. Using Dynamic Data in Number Counter Using the Number Counter from Oxygen Builder’s composite elements is cool until you need to use the dynamic data. When you add dynamic data source, span is […]
Read More
Aleš Sýkora wrote
Show Oxygen Element by current language with WPML
26. 4. 2021 in ,
When you use WPML with Oxygen Builder and use 1 template for all languages, then you propably want to display/hide elements conditionally. And of course you can. Use the WPML’s filter wpml_current_language to get current language code. Then use the if function to return value you want. I am returning the language code and then […]
Read More
Aleš Sýkora wrote
Astra Theme Container Width Fix
4. 9. 2019 in
If you encounter some issues with container width on mobile device when using Astra Theme and Toolset and Bootstrap try this CSS fixes.
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram