Autogenerate gender and name

  • Profile Image
    ccross6032
    Asked on July 24, 2017 at 05:57 PM

    I'm a veterinarian working on a form to simplify my paperwork and discharges. Currently I'm using conditional logic to check off boxes that I want to show up in the patient record and client take-home discharges. It would simplify things considerably if I could auto generate gender pronouns (he versus she) and the patient Name in my final write up without having to manual re-enter and correct. Is this possible and if so, help? I'm not a programmer sadly and code is very confusing for me - so if the answer involved entering code, I'm remedial lol. Thanks! 

  • Profile Image
    Mike
    Answered on July 24, 2017 at 08:00 PM

    Thank you for contacting us.

    Could you please provide us with some example of how it should look like? Please also explain what form fields are involved and where do you need to display the results.

  • Profile Image
    ccross6032
    Answered on July 24, 2017 at 08:41 PM

    Sure - thank you. 

     

    I've updated the form with an example for you. Hopefully it helps. On page 3, there's a section entitled "Hindlimb strengthening" and if "Front Paws on Low Box + Side Stepping" is checked, text will appear that says: 

    Instructions: Ask (dog's name) to place front paws on a wrist-height box; reward with a treat. Step into (him or her) until (he or she) sidesteps; reward. Repeat around box. Repeat other direction.

     

    I'm looking for a way to have the info in parenthesis in the instructions auto generate from the earlier fields - name of the dog and gender to indicate he/she or him/her. 

     

    make sense? thanks! 

  • Profile Image
    John_Benson
    Answered on July 25, 2017 at 02:15 AM

    Hello,

    That is possible. You need to change the (dog's name) to {patientName} and the (him or her) to {sex}. Here's a screenshot so you can see the changes that I have made to my clone form:

    To find the Field IDs and Names shown in the screenshot, please follow this guide: https://www.jotform.com/help/146-How-to-Find-Field-IDs-and-Names

    Result:

    I hope that helps. Let us know if you need further assistance.

     

  • Profile Image
    ccross6032
    Answered on July 27, 2017 at 10:27 PM

    Thanks! I'll give it a whirl :)