How can i do String manipulation using condition?

  • viskar
    Asked on December 4, 2015 at 4:47 AM

    Example, i have created a textbox with a filed  call NRIC.

    The format for this field is xxxxxx-yy-zzzz.

     

    Example : 981201-12-5566

    I want to extract the above data separately like, 

    First 6 characters represent Dirth Of Birth in reverse manner. For the above data 98 is year, 12 is month, 01 is date. once someone fill up the above NRIC filed, i want to automatically fill up Dirth of Birth field with the given information.

     

    Is this archiveable ? 

    Jotform Thread 717804 Screenshot
  • victor
    Replied on December 4, 2015 at 7:29 AM

    You may try using the substring widget. Using this and a condition to update the value of the date might help you out.

    You can use 3 different substring fields, one for the month, day and year. Once this gets the value you can update it to the date field with the condition update value.

    Please let us know if this helps.

  • viskar
    Replied on December 16, 2015 at 7:51 PM

    really helps, thank you so much.

    Right now the value is being assigned to text box in D.0.B field. Can i do the same for calender?

  • jonathan
    Replied on December 16, 2015 at 9:01 PM

    Hi,

    Can i do the same for calender?

    Please describe more so we can check for a solution. Which calendar on where you referring to?

    I tried looking for it on your jotform http://www.jotform.com/53338118430450 but so far I could not find it.

    Thanks.