Error information for the user

Hi. If the user does not fill in all the fields in my application. it displays an error and closes the application. I want to inform the user that he did not complete all fields and prevent the application from closing. What can i do?

Use an if..then statement to check if all the fields (TextBoxes??) contain data.
If they do have data, continue. If not, use a Notifier to tell the user he/she needs to fill in all the fields and at the same time, do not permit your code to try to execute with missing data.

Try some Blocks. If you have issues, post an image of the Blocks you tried.

1 Like

Instead of closing the app you can ask user to complete the form with incomplete mandatory data fields, with providing focus to that fields with no data.

Check below code segment, if it works for you

1 Like

it doesn't work for me, keeps showing error

how can i prevent code execution with missing data?

Hello, what error you are getting, please share, to root cause analysis. Since it was working to me.

It's a helpful implementation not exact, you might need to extract code according to your specific needs.

1 Like

I've tested your code, and it works seamlessly.

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