Hi @Gaurav_Kothari,
Thanks for posting here, I'm happy to help!
I just built an app that could meet your needs, in that it only accepts 15 numbers (5 in each field), and writes to a column in the format of 12345-67890-41257 as desired. Let me show you how I set it up:
I created a screen with three data cells, and in between I have two content boxes with only a dash. Each of the three data cells are editable and only accept a number format, as I've showed in the properties here:
I made a greyed out submit button that will display if the amount of entered numbers / characters in each field is not equal to 5:
In my example, using the formula: =OR((LEN($[Data1])<>5),(LEN($[Data2])<>5),(LEN($[Data3])<>5))
And the Submit button will only display if the amount of numbers is 5 in each:
Formula in my example being: =AND((LEN($[Data1])=5),(LEN($[Data2])=5),(LEN($[Data3])=5))
I also made an error message that appears if a user enters more than 5 numbers in a box:
Now for the Submit button's automation, I have an action that adds a new row to a table with all of entered data in the desired format with the CONCATENATE() function.
The formula I used in my automation was: =CONCATENATE($[Data1],"-",$[Data2],"-",$[Data3])
Now when you enter the data in the app, it will only accept 5 numbers in each field and write the entered data as desired to the table:
This shows the data entered correctly in the app:
And this is how it writes to the table when clicking the Submit button:
Also, this is what the error message looks like if someone were to enter more than 5 characters into a field:
Hope this helps you out! Let me know if it does.