Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Status(CurrentError) not working on -Edit

Featured Replies

I have a file that gathers customer information. I have it set up to require fields and give error messages when the fields are not filled in. This works great when the user is entering information for the first time (using the -new command) but it does not pick up the error when editing the record (using the -edit command).

For instance, if they are required to enter a user name, when they create an account the first time and they leave out the user name the program will tell them so and will not continue. However, later in the program, if they edit their user information and decide to delete their user name and click continue, it will act as though everything is fine and go on to the next step.

Is there a reason it's doing this?

For a more difficult question...

Is there a way to tell the user which field they left blank rather than just showing the generic "you left one or more required fields blank, please go back and double check" type of error message? Can I get the CDML to capture which field was left blank and give a more specific error message?

You may try writing a script which checks each field and which would use an exit script message to cause the error message to appear.

If [field1 = ""]

Exit Script

Else

If [field2 = ""]

Exit Script

Else ...

...

End If

Then command the script from your format file.

Peace

Keith M. Davie

  • Newbies

Why don't you just use javascript and have the fields needing to contain a value?

  • Author

quote:

Originally posted by craso:

Why don't you just use javascript and have the fields needing to contain a value?


Because I don't know Java. frown.gif

  • 1 month later...

Get Dreameaver, all that stuff is built in!

I have not had a problem with the error pages not coming up. Check your syntax again. Show us the code you are using?

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.