Conditional Submit to another URL

Home Forums Quform WordPress Conditional Submit to another URL

This topic is: not resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #12416
    gordonbrow
    Participant

    I have a dropbox which triggers a conditional call to file upload. The submit button is set to go to a URL. Is it possible to have the submit button NOT go to the URL if the check box is selected?

    Professional Services

    #12449
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #12500
    gordonbrow
    Participant

    Thanks Ally, you made my day.

    #12521
    gordonbrow
    Participant

    I used the following code but get a syntax error – see attached. Did I miss something?

    function my_post_process($form)
    {
    $value = $form->getValue(‘iphorm_6_72’);

    if (in_array(‘upload file’, $value)) {
    $form->setSuccessType(‘message’);
    }
    }
    add_action(‘iphorm_post_process_6’, ‘my_post_process’);

    Attachments:
    You must be logged in to view attached files.
    #12544
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #12578
    gordonbrow
    Participant

    Thanks . . that worked perfectly. One more question. I have multiple forms on this site and want to apply the same function. Do I just change the value of “$form”?

    #12594
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy