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 can I pass a Substring Data to a Text Field?Asked by snaplash on December 16, 2015 at 11:20 PM
I have finally got the Dynamic Dropdown field to work, where it will give the last tier of the dropdown only using the Substring Widget.
how can I pass the Data in the Substring into the text field with Conditional Logic?
Do I need to use the Widget ID?
I came up with a work around.
can you have a look at this and see if it can be done more elegantly? and if not, could you explain why this works please? I have no idea. I accidently fell on it.
Obviously if you can do this in a better way then thank you!
I have inspected your form. you are passing data form dropdown field to "no reason" field. And then you are passing data to Substring widget, which is used to copy values of "no reason" field after 15 character (nice solution to add additional space characters to options of your first dropdown field).
You do not have to pass data from Substring widget to other text box field and then from that field to text area field. You can pass data directly from Substring widget to text area field.
I can not find any other way to to this. Your solution for this is great :)
Feel free to contact us if you have any other questions.
Could you show me? When I remove the no reason box it fails
On my tests, when I remove the "no reason" field, it fails too. (It copies the entire text of both drop downs) I think, passing data from one widget to another has a problem. Because, when I set the "Substring is filled", the condition doesn't trigger. Please, see it from the below:
So, the best solution is the one with "no reason" field, I think. BJoanna and you has found a good solution for this one.
Thanks! Let me know if I can do anything else to help, we are pleased your issue has been resolved.
Just to mention I did not remove "no reason' field from my form. I removed "Passed Data" field. In your original form you were passing data from Substring widget to "Passed Data" field and then from "Passed Data" field to Text Area field. I removed "Passed Data" field and passed data from Substring widget directly to Text Area field.
Yeah, whenever I try that the Final output in the text field takes the last value from the substring, not the new one