• Resolved confusedneedhelp

    (@confusedneedhelp)


    Hi,
    I am using the Calculated Fields Form plugin as a booking form on my website. I am trying to open a popup to display the Terms and Conditions but I cannot get it to open from the link click in within the form. If I put the same link within the normal page text it works ok. Have you any advice or a possible workaround for this?
    Thanks for your time.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Dear @confusedneedhelp,

    We checked the Calculated Fields Form plugin and found that there’s an option for setting an Onclick event for the button.

    Go to the Field Settings -> Button -> OnClick event and add the popup with this code like we have done in the screenshot below:

    var popupObj = SGPBPopup.createPopupObjById(1);
    popupObj.prepareOpen();

    Just set your popup Id number instead of 1 in the brackets.

    Then go to your popup settings and select “Set by CSS class” in the Events section of your popup and select the page for the popup in the Display rules section.

    Thread Starter confusedneedhelp

    (@confusedneedhelp)

    Works perfectly.
    Thanks for your quick response!

    Dear @confusedneedhelp,

    Happy to help you! 😉

    Would you mind taking a few seconds to share your positive review for us?
    It will help us to grow and the users to be more confident before choosing our service.

    Here’s the link, please:
    https://wordpress.org/support/plugin/popup-builder/reviews/

    Thank you in advance)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not working with Calculated Fields Form Plugin’ is closed to new replies.