• Resolved alexrwlp

    (@alexrwlp)


    Hello,

    I currently only have 1 button set up on this form – choose the first option on each radio dial and it’ll get you to our first button.

    What I can’t seem to figure out is how to make this a normal button. I’ve tried finding OnClick events coding to try to make it point to a specific web page but it won’t allow it. I don’t really understand why something as simple as a button would require jQuery/Javascript knowledge. It should act like any other button, where you just input a link.

    Please let me know what string of code I need to input just to make the button work. Thank you.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @alexrwlp

    A button is not a link. A button has associated events like onclick or mousedown, where implementing the actions you want.

    If you want to include a link on your form, you should insert an “HTML Content” field in the form with the link tag as its content, for example:

    <a href="https://cff.dwbooster.com">Calcularted Fields Form</a>

    Or, if you want to emulate the same process with a button, you can enter the following code as its onclick event:

    redirectToURL("https://cff.dwbooster.com");

    Best regards.

    Thread Starter alexrwlp

    (@alexrwlp)

    Hi @codepeople,

    Thank you for getting back to me. No, but more often than not a button includes a link to a page. I know that’s maybe not the main intended purpose here but I really think this form would be a lot easier if it allowed for both on the button module.

    Anyway – the redirectToURL code worked – is there a way to make it so it pops open in a new tab?

    Let me know and thanks for your help!

    Plugin Author codepeople

    (@codepeople)

    Hello @alexrwlp

    In this case, you must use a window.open like:

    window.open("https://cff.dwbooster.com", "_blank");

    or a link with target="_blank" like:

    <a href="https://cff.dwbooster.com" target="_blank">Calcularted Fields Form</a>

    Best regards.

    • This reply was modified 4 years ago by codepeople.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make a button in CFF work?’ is closed to new replies.