• Resolved albridi

    (@albridi)


    Hi there ?? !

    Thanks for your awesome plugin, I’m impressed with it.

    I’m trying to make the URL link for consent fields to open the Privacy Policy page in the same window (_self instead of _blank), but can’t figure out how to do this.

    I’ve found how to change the URL that it points to by adding a filter (https://calderaforms.com/doc/caldera_forms_privacy_policy_page_url/), but what I want to do is only change the “_blank” attribute of the link and make it “_self”.

    Hope you can help with this.

    Kind regards.

Viewing 1 replies (of 1 total)
  • Thread Starter albridi

    (@albridi)

    Hi there :)!

    Finally I fixed it with some JS:

    var tags = document.getElementsByClassName(“caldera-forms-consent-field-linked_text”);
    for(var i = 0; i < tags.length; i++) {
    tags[i].target = “_self”;
    }

    Hope this helps someone else.

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘URL link for consent fields (open in _self window)’ is closed to new replies.