What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Text Based Functions for Condition Programming

    Asked by andrewrodie on April 21, 2014 at 12:23 PM

    Is there a way to get the first three characters of one field into another field based on a condition?

     

    example, If Field 1 is "filled" then the left three characters of the field1 entry are automatically filled into Field2 (restricted field, user can fill in).

     

    I have a drop down list of 107 items in Field1, prefixed with three numbers (ex., 001 Eggs, 002 Bananas, 003 Carrots).

    After the user selects somthings from Field1 like "001 Eggs", Field2 is automatically populated with "002".

     

    I hope I don't have to do 107 conditional logic based entries for this if Field1 = "001 Eggs", then input "001" into field2 automatically.

     

    Andrew

     

     

     

     

     

    fill items then
  • Profile Image
    JotForm Support

    Answered by KadeJM on April 21, 2014 at 02:51 PM

    As far as I know it's possible to grab the data that is populated for a whole field. But I'm not so sure that this was possible or not and I thought we had a similar request via a thread awhile back, but so far I am unable to locate any relation to it since then.  

    The closest to that that I think we could come up with as of right now is with this solution here http://form.jotform.us/form/41105269868158. However, the downside to it is that it uses calculated conditional logic which I know you said you weren't really wanting to do since there would be 107 rules. You could offset it with 00 since that would get stripped as you'll note and you can additionally use the Duplicate Condition option to speed this up.