Can I update a hidden field using Update a form field conditions?

  • wsfarm
    Asked on April 28, 2015 at 11:20 PM

    Can I, in the Conditions Wizard / Update a form field value, update a field that is hidden?

    I have three fields on my form, only one of which will be visible to the user depending on a previous choice. I would then like to copy their response to the relevant field into a fourth (hidden) field that will be used in reports rather than showing the original three fields only one of which will include data.

    I have tried to set this up but my fourth field only seems to populate if it is visible.  Is there a way to populate a hidden field?

    Also, if a field is hidden (by hiding it in properties) can that field be shown in reports? It seemed to me that it could not.

    My workaround was to hide it using a condition that was never met. Is there a better way?

     

    Thanks

    Charlie

  • Ashwin JotForm Support
    Replied on April 29, 2015 at 5:01 AM

    Hello Charlie,

    Yes it is possible to achieve your requirement. You can add condition to update a value of the hidden field. Here are the steps you should follow:

    #1. Add a normal text box field in your form.

    #2. Hide it by clicking on the "Field Field" in the properties drop down.

    When the form is submitted, the value you have set in the hidden field conditionally will be saved. This hidden field will also be displayed in the reports as well. I did test all these scenario and it seems to work as expected. Please check the screenshot below :

    Can I update a hidden field using Update a form field conditions? Image 1 Screenshot 20

     

    I would suggest you to test it yourself and get back to us if you have any questions.

    Thank you!

  • wsfarm
    Replied on April 29, 2015 at 12:48 PM

    Thank you Ashwin,

    Not sure what I was doing wrong before but I have followed what you have suggested (that is what I thought I did before) and now it is working well.

    Really appreciate your excellent service.

    Regards

    Charlie

  • Mike_G JotForm Support
    Replied on April 29, 2015 at 2:48 PM

    Hi, Charlie, 

    We're glad to know that the solution that Ashwin have provided worked well for you.

    If in case you will be having any other concerns in the future, please feel free to let us know and we will be glad to help you.

     

    Cheers!