Jump to content

This topic is 7731 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hi

I need some advice regarding Lasso error reports. For example on a form with 10 fields, all required, the user forgets to enter data on one of the fields.

How can I on an error page, identify that particular field that was left blank.

Or in case the entered data is incorrect on a specific field, how can I alert the user that that particular field has incorrect data.

Thanks

Daniel

Posted

Reading what you would like to obtain, it is more than the "software" errors : you would like to validate the quality of the entered data. Correct ? My FMP web site is running with Lasso, but I'm not yet an expert... I know that you can develop your own set of error codes within Lasso.

However, I faced the validation of the entered data, not only based on "software" errors, but also to control the content : it is a pure numeric data, as expected? Is it within the expected range? Is a space allowed in the data? And so on... A long list ! So, I developed within FMP a serie of calculated fields, in order to control each "entry" field (by this way, I discovered that the value of "that" is 1...). If a rule is violated, a message appears in the concerned control field. An additional calculated field checks all these control fields and, if minimum one message is generated, the value of this last field is, e.g. "x".

I use this last value in a response format file on the web, with an "If" statement. On this web page, each field is reported with its associated comment field. So, the user can directly check if the entered data are valid or not. My "if" statement is used to create two forms : if the value is "x", only a button "return" appears (back to the previous page), othewise a button "go" appears, allowing an "-add" command. By this way, only the valid data are recorded in my database.

I do not say it is the better method, but it works well... For the fun, my comments are language dependent, but it is another story ;-)

HTH

Christian

This topic is 7731 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.