Update a form field value not working

  • je862
    Asked on November 19, 2015 at 12:19 PM

    My conditional logic is working on all areas of the form except for the Date of birth entered on page one of the form in the third field is supposed to be carried to the Date of Birth in the Patient History in the "Birth History" area.

    Rather than the value entered in the third field on the Patient Information page, it inserts 11/30/1899 in that field.

    Thanks,

     

    Jim Erickson

  • Charlie
    Replied on November 19, 2015 at 1:45 PM

    Hi,

    This is because the "Date of Birth" in the first page is using the same field name of the "Date of Visit". While date of visit is blank, it shows you the default date which is 11/30/1899 if date field is blank. 

    Update a form field value not working Image 1 Screenshot 70

    If you check the field name of "Date of Birth" in page one and the "Date of Visit" , they both used {dateOf} as the field name.

    Update a form field value not working Image 2 Screenshot 81

     

    To fix this, you just need to edit one of them and re-create the condition. Here's an example:

    1. Click the gear icon and choose "Edit Properties".

    Update a form field value not working Image 3 Screenshot 92

    2. In the Properties window, click the field name and changed it. In my case, I changed it to {dateOfBirth}. 

    Update a form field value not working Image 4 Screenshot 103

     

    3. Now you'll need to recreate or edit the condition associated with it. Click "Conditions"->"Saved Conditions". Look for the condition that passes the value of "Date of Birth" from page 1 to "Date of Birth" in page 2.

    Update a form field value not working Image 5 Screenshot 114

    4. Here, just recreate the condition and add the "Date of Birth" field using the "Add Field" button.

    Update a form field value not working Image 6 Screenshot 125

     

    5. Here's a cloned form with the changes I made: https://form.jotform.com/53224983785972?. See if that's how you expect the form to work.

     

    Let us know if you need more assistance on this.

  • Jim Erickson
    Replied on November 19, 2015 at 4:16 PM

    thanks, Charlie.  So simple.