How can I pass a Substring Data to a Text Field?

  • Profile Image
    snaplash
    Asked on December 16, 2015 at 11:20 PM

    Hi Jotform!

     

    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.

    https://form.jotform.com/53497794098981

    how can I pass the Data in the Substring into the text field with Conditional Logic?

     

    Do I need to use the Widget ID?

     

    Thank you!

     

     

  • Profile Image
    snaplash
    Answered on December 17, 2015 at 12:11 AM

    I came up with a work around.

    https://form.jotform.com/53499340576971

    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!

  • Profile Image
    BJoanna
    Answered 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. 

    https://form.jotform.com/53501378028958? 

    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.

  • Profile Image
    snaplash
    Answered on December 17, 2015 at 08:57 AM

    Could you show me? When I remove the no reason box it fails

  • Profile Image
    mert
    Answered 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:

    https://form.jotform.com/53504803104949 

    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.

  • Profile Image
    snaplash
    Answered 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.

     

    heheh....

  • Profile Image
    BJoanna
    Answered 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. 

  • Profile Image
    snaplash
    Answered 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

  • Profile Image
    BJoanna
    Answered on December 17, 2015 at 12:20 PM

    I am not able to replicate mentioned issue. Here is my new form: https://form.jotform.com/53504406770957? 

    Feel free to clone it.

    I have set all field to be visible. Please test my form and see if it works as expected.