How can I force users to write in texbox with specific format

I have a text box that has been assigned to the user to write the coordinates of points in csv format before click submit (ok ) button

anypointname,Latitude,longitude


and I want to force the users to write inside the text box in this format.

Before submit

I want to fulfill these conditions. First, the data for each point should be on a separate line. The latitude and longitude are decimal numbers, and a comma must be placed between them. The names of the points should not be repeated.

If these conditions are not met, a message appears explaining the error in the writing format

Use three textboxes, then join them with commas in your blocks.

You can test the contents of each textbox for the correct formatting in your blocks, and use numbers only for lat and lon.

1 Like

Do the P1, P2, P3 need to follow a pattern, like P followed by ascending consecutive number?

1 Like

No ,any point name can be accepted provided that the user does not repeat it more than once

Thank you @TIMAI2 :smiling_face_with_three_hearts:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.