How can I change the input in a field based on conditions?

  • Profile Image
    Kusi06
    Asked on January 31, 2018 at 03:40 AM

    Dear Sir or Madam

    I have 3 basic fields in my "public guestbook-form" (via reports):

    - Surname  (i.e. Mike)

    - Name (i.e. Miller)

    - City   (London)

    Then I have a checkboxfield (single choice) where people can choose, how their personal data will be published in the Guestbook.

    a) choice 1 (result will be: "Mike Miller, London")
    b) choice 2 (result will be: "Mike Miller, from L.")
    c) choice 3 (result will be: "Mike M. from L.")
    d) choice 4 (result will be: "M. M. from L.")

    How can I create a field which returns the result from the choice of the checkbox-field?

    Help would be gladely appreciated.

    Thank you!


  • Profile Image
    Kevin_G
    Answered on January 31, 2018 at 09:15 AM

    Yes, I think there is a way to achieve this, you will only need to use some conditions and the Substring widget to get the first letter of each string. 

    Here are the needed resources for this: 

    https://widgets.jotform.com/widget/substring

    https://www.jotform.com/help/252-How-to-Add-a-Widget-to-Your-Form

    https://www.jotform.com/help/268-How-to-Insert-Text-or-Calculation-into-a-Field-Using-Conditional-Logic 

    An example can be seen here: https://form.jotform.com/80303221593952 

    Please feel free to clone my form and see how it works. 

    I hope this helps. 

  • Profile Image
    Kusi06
    Answered on January 31, 2018 at 11:43 AM
    Dear Kevin

    First of all you are really a genius the simple way you solved this problem – AND so fast – THANK you very much – it works perfect (there are just 2 small problems still in it)
    ...
  • Profile Image
    Kevin_G
    Answered on January 31, 2018 at 12:33 PM

    Glad to know it helped. 

    Please let us know the problems you're still facing with this, we will be happy to help. 

  • Profile Image
    Kusi06
    Answered on February 01, 2018 at 02:43 AM
    No all problems solved by yesterday. Your idea was successfully implemented in my form. Great job! TY again very much!
    It might be a real nice template also for other users.
    I love Jotform – it’s really great in functionality!


    Von: JotForm [mailto:noreply@jotform.com]
    Gesendet: Mittwoch, 31. Januar 2018 18:34
    An: dpc@dog-psychology-center.fr
    Betreff: Re: How can I change the input in a field based on conditions?

    A new response has been received:

    Answered by Kevin_G
    Glad to know it helped.
    Please let us know the problems you're still facing with this, we will be happy to help.
    View this thread on browser » Unsubscribe Thread
    1517420017
    ...