Still Sending Condition Data when Hidden

Home Forums Quform WordPress Still Sending Condition Data when Hidden

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8765
    lawrencepepper
    Participant

    I have a form in which there a two conditional fields. Both are drop downs. Only one shows depending on what was chosen in another drop down.

    I am using the following code in my functions file to save the data from this form as session data so I can use it on a re-directed page:


    #Send Dates to Custom Report

    function submit_hour_range5($form)
    {
    $_SESSION['iphorm_19'] = $form->getValues();

    }
    add_action('iphorm_post_process_19', 'submit_hour_range5');

    The problem is that the form is sending the data of both fields whether they had been chosen or not in the conditional choice.

    I am running a query on the form data on my re-direct page and it is not running correctly because I am getting data from both of these conditional fields.

    I only want the data from the drop down field that is shown. Not both. Only the one that is chosen.

    #8774
    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 2 posts - 1 through 2 (of 2 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