Add a field value to paragraph element when editing form

  • Profile Image
    dhrupal.atlanta
    Asked on January 14, 2022 at 10:42 AM

    Hello,

    I have a form in which I need to inform users what their phone number is in a paragraph element for verification when they are editing their form. The code is below:

    The cell phone number you provided is: {cellPhone}. Your spouse’s cell phone is: {spouse_cell}. Please ensure this is correct to receive text reminders. If it is incorrect, please go back to the first page and correct before submitting.


    However, these form fields are not being filled in the paragraph placeholder text because the field, when editing, is prepopulated. When I change the value of the phone # field, it is filled in the paragraph element. But we need the field filled in the paragraph element even if they do not change their phone number in the phone field.

    How can this be done?


  • Profile Image
    parker
    Answered on January 14, 2022 at 12:56 PM

    Hello,

    Can you go into your form settings and change clear hidden field values on being hidden to don't clear. When I did this on a clone the phone numbers were then appearing for me.

    1642182987_61e1b94bc1d80_

  • Profile Image
    dhrupal.atlanta
    Answered on January 14, 2022 at 01:04 PM

    parker, I need the hidden fields cleared because otherwise, when my users edit the form, we are getting submission with old values that do not apply and should have been cleared.

    And the telephone field is never hidden.

    Is there another solution?

  • Profile Image
    JohnRex
    Answered on January 14, 2022 at 01:37 PM

    If the paragraph field is conditionally hidden, the tags are stripped off. So as a workaround, please set the Clear Hidden Field Values setting to "Clear on Submit" instead of "Don't Clear".

    Then set the Browser Autocomplete setting to NO so the form won't fetch stored data from the user's browsers - preventing the unwanted inputs of old data.

    1642185426_61e1c2d25e42d_

  • Profile Image
    dhrupal.atlanta
    Answered on January 14, 2022 at 02:00 PM

    I think this will work. Was afraid to try the choice "Clear on Submit" in case hidden fields did not get hidden.