How can I copy the value of field A to field B based on a condition?

  • timodegeest
    Asked on August 22, 2019 at 7:30 AM

    Hello team,

    I've tried to configure a condition to copy the value from field A to field B, based on the value of field C.

    Can you please assist or tell me where the issue is?

    I've added a screenshot and URL to show the config and the form.

    Thanks in advance

    Jotform Thread 1936296 Screenshot
  • omergulen
    Replied on August 22, 2019 at 11:05 AM

    The issue happens because of the Input Mask of the BTW Nummer field.

    When you disable input mask of the BTW Nummer field in the form builder question properties, it will successfully copy the value of KvK Nummer to BTW Nummer.

    1. Please open the Form Builder.

    2. Please select BTW Nummer question.

    3. Please click to Properties button on the right.

    1566485969Screenshot at Aug 22 17 57 07 Screenshot 10

    4. Please click to Options button on the top to open Options tab.

    5. When Options tab opened, disable Input Mask of the BTW Nummber question by clicking to toggle.

    1566485996Screenshot at Aug 22 17 57 39 Screenshot 21

    After disabling Input Mask, copy value condition will work normally:

    1566486291btwnummer Screenshot 32


    If you need further assistance please do not hesitate to ask.

  • timodegeest
    Replied on August 22, 2019 at 3:28 PM

    Thanks for the response!

    I've tried this, but it doesn't work for me.

    It seems that the issue lies in having multiple conditions on this field.

    I have a second condition in place which hides the BTW field when the checkbox is checked.

    If I disable this rule, then the first rule works.

    Is there another way to configure this? My goal is to not show the BTW nummer field when the checkbox is checked, but still fill it in the background.

  • Mike_G JotForm Support
    Replied on August 22, 2019 at 4:06 PM

    There is an option on the builder page that will clear conditionally hidden fields on submit or on being hidden. This means that when a field is being conditionally shown/hidden, its value will be cleared when the form is submitted or when the form is being hidden.

    I would suggest that you set the option to "Don't Clear" and test your form again after.

    1566504333zt15 59 30 Screenshot 10

    Feel free to contact us again anytime if you have other questions or concerns.

  • timodegeest
    Replied on August 22, 2019 at 5:51 PM

    Ah that makes sense!

    Thanks for the help, mission accomplished.