Create User ID with the first 4 characters of name and last 4 digits of IC Number

  • Profile Image
    miezayahaya
    Asked on November 05, 2020 at 03:53 AM

    how to create USER ID by adding the first 4 characters of firstname + last 4 digits of IC number or Phone Number



    This is a re-post of a comment on How to Add Custom Unique IDs to your Form Submissions?

  • Profile Image
    Vanessa_T
    Answered on November 05, 2020 at 04:08 AM

    Please note that what you want cannot be done using the Unique ID widget as shown on this guide.

    However, you can add a Substring widget to get the first four characters of the name, then another Substring widget for the last 4 digits of your IC Number.

    https://www.jotform.com/widgets/substring

    Then add a Form Calculation widget to combine the values of the two Substring widgets.

    How-to-perform-form-calculation-using-a-widget