How to do string arithmetic?

  • AskGregory
    Asked on September 4, 2019 at 3:39 AM

    Good morning,

    How do I do string arithmetic,

    like trim {id} to make it shorter,

    to use as a unique ID for a payment ref?

    Thank you,

    Gregory Harington

  • Nik_C
    Replied on September 4, 2019 at 3:57 AM

    You cannot do that in the form. Submission ID is generated only after submitting.

    If you want to do that, that would have to be done on your side with some script, and then you would use that number further in your database for example.

    Also, I would like to advise you to check our Unique ID widget: https://widgets.jotform.com/widget/autoincrement

    That might serve your needs better.

    Hope it helps.

    Thank you!

  • AskGregory
    Replied on September 4, 2019 at 4:12 AM

    Thank you Nik_C.

    I appreciate your quick response and appropriate solution.