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.
How to extract digits to String Widget and make it hidden?Asked by hatzbs on August 26, 2016 at 01:47 AM
In my form I'm trying to extract first 3 digits of DISPATCHER ID into ID field using String Widget; getting no result at all. Please advise. https://form.jotform.me/62340964958467
Substring widget is used to capture characters from input fields, such as text box field. Considering that your "DISPATCHER" field is dropdown field Substring widget in not able to capture characters from that field.
Possible workaround is to add one additional text box field to your form, which can be hidden, and then to pass data from your dropdown field to text box field, with conditional logic. Then you can use Substring widget to capture characters form your new text box field and to pass it to ID field.
Here is my demo form: https://form.jotform.com/62381582340958
Feel free to clone it.
Hope this will help. Let us know if you need further assistance.
OK, worked as you said; I need to make STRING WIDGET HIDDEN & CANNOT. KINDLY ADVISE & Thx.
I checked your form and I see that solution provided by my colleague worked for you:
If I understood you right, you want to make String widget field hidden, to do that please try to paste this CSS in your Custom CSS field:
That will hide your String widget field from the form:
Hope it helps.
If you need further assistance please let us know.
Your suggestion works. However, I need to know HOW YOU IDENTIFIED THE SUBSTRING FIELD AS #input_10. The form you're viewing is only a TEST form. Thx.
You'll have to view the form in your browser and find the field ID by using the inspect element method. This guide from Google:
We can help you find it, just share us the correct form URL.
I found an easier way - inspecting the EMAIL FIELDS for a form shows the FIELD #. Please publish this info. Thx.
That is the way as well, thank you for sharing this information!
Please let us know if you have any further questions.