Can I access the 'unique name' property

  • Profile Image
    Pathagoras
    Asked on August 17, 2017 at 05:04 AM

    I am looking for a way in JotForm to send me the 'unique name' property (under 'Advanced | Field Details') and its associated value. I need to the 'unique name' in my reports in order to transfer that data into my database. Does JotForm allow me to do that? (While the title in the JotForm accurately describes the content of the field, it just doesn't marry up to my database. My actual database fields are not practical for the forward facing form view that the client will see . . . . they are not 'friendly' names. E.g., "Your Name" vs. "Client Name"; "Date of Marriage" vs. "DOM")

  • Profile Image
    Mike_G
    Answered on August 17, 2017 at 06:00 AM

    To my understanding, you would like to have the field labels in your form match the field in your database, however, you do not want the field labels similar from the database to show on the form for your clients to see.

    The unique name that is enclosed in curly brackets that you are referring to

    is always similar to the value (after the underscore) of the name attribute of the field element in your form, regardless if the unique name is changed.

    However, if I'm understanding your requirements correctly, may I suggest you just name the fields on your form according to the fields in your database, then use CSS codes to hide that name from the form and show a different one for your clients to see.

    Here's how:

    The screenshot above shows the field label having the field in the database first. Adding the CSS codes below change it to something that's more practical for your clients.

    Here are the CSS codes I used:

    label#label_3:before {

        content: "Your Name";

        visibility: visible;

    }

    label#label_3 {

        visibility: hidden;

    }

    I hope this helps. If you have other questions or concerns, please feel free to contact us anytime.