How to do string arithmetic?

  • Profile Image
    Asked on September 04, 2019 at 03: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

  • Profile Image
    Answered on September 04, 2019 at 03: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:

    That might serve your needs better.

    Hope it helps.

    Thank you!

  • Profile Image
    Answered on September 04, 2019 at 04:12 AM

    Thank you Nik_C.

    I appreciate your quick response and appropriate solution.