- snaplashAsked 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?
- snaplashAnswered on December 17, 2015 at 12:11 AM
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!
- JotForm SupportBJoannaAnswered on December 17, 2015 at 02:17 AM
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.
- snaplashAnswered on December 17, 2015 at 08:57 AM
Could you show me? When I remove the no reason box it fails
- JotForm UI DevelopermertAnswered on December 17, 2015 at 11:25 AM
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.
- snaplashAnswered on December 17, 2015 at 11:31 AM
Thanks! Let me know if I can do anything else to help, we are pleased your issue has been resolved.
- JotForm SupportBJoannaAnswered on December 17, 2015 at 11:58 AM
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.
- snaplashAnswered on December 17, 2015 at 12:01 PM
Yeah, whenever I try that the Final output in the text field takes the last value from the substring, not the new one