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.

Error Page not reflecting errrors

Featured Replies

Hi Gurus!

Here is another beginer question that I am sure u know the answer to....

I have this:

<INPUT TYPE="hidden" NAME="-FORMAT" VALUE="ReportAdded.html">

<INPUT TYPE="hidden" NAME="-ERROR" VALUE="ar_failed.html">

but rather than hittng "ar_failed.html" I get "RportAdded.html not found"?

Where is that crutial "error" in my error page smile.gif

thanx

The error page is only returned if the action fails -- no ecord found, record does not exist, that sort of thing. If there is a problem with the syntax of the command passed to Web Companion then WC uses its own internal error message.

WC cannot find the error file specified. Check that the name is typed correctly (including capitalisation) and the path is correct.

  • Author

OK...thanx Vaughan!

the syntax is correct and respond should be "No records found" but rather than getting (my page with this message) error page I get the msg>

-------------------------------

Fomat File could not be Found:

"Results.html page can not be found!"

-------------------------------

what could it be?

thannk you again!

It cannot find the format file! Is it in the right folder with the right name?

Also recommend looking at the db file to confirm that whatever action is driving your form is being taken.

  • Author

yes it "seems ok" it is in the right folder because if I do supply a record that I know it exists it "goes" without any problem.....find seems to be in place. Its the Login page...."look for a user...if not found to to this page but it doesn't work? frown.gif

the similar scenario is:

What I have is an unique field that users can create/add...if existing record...go to page...RecordExisits.html.....still the same problem!

it seems that very rarely -Error works. I am confused...

IMHO -Error works all the time. I never ever had single problem.

Try to specify error page the same as response and catch error with If...

  • Author

ok ok...I solved this error issue (lets say I did smile.gif)

how about errors on -NEW......are they possible -if Y then my Q is how to bypass the error from WC and FM and go to custom error?

eg. Unique field [somenumber] is entered by users...if this numbers exist give me my error page NOT the built in FM vague stuff

thank you guys for taking your time...

Don't confuse an FMP error with a "data entry" error, unless the data entry error is caught using field-level validation.

FMP errors are all listed in the help info for the Status(CurrentError) function. These codes can be trapped for in the -error file to produce a specific response. Validation errors are caught this way. Note however that if the -new action fails then no new record was created and there is no current record to draw field values from in the response. (This has caught me a few times.)

If you have a data entry issue where the action was completed but the user entered the wrong data (and it isn't validated or at the field level) then you need to either test for it before the form is submitted, or test the newly created record and generate a response in the format file specified to display after the action is performed.

Hi All,

When I perform data entry via a web form, I always have a calculation field which ensures that the entries for each field are valid and, if they are not valid, then I have it generate a custom error message.

This allows a far greater level of control over the accuracy of the entered data when compared to the FMP errors.

An example of an equation I use is:

If(

Length(teHeaderNameFMC) != 0 and <--Not Empty

Length(teHeaderProduct) >= 2 and <--Longer than 2

Length(teHeaderSymptom) = 3 and <--3 Long

TextToNum(teHeaderPRNumber) >= 2000000 and <--Number is greater than 2,000,000

nsErrorCount != 0 and <--Field is not 0

Count(Advised_Web::tcReportKey) <= 1, <--Not Duplicate

"No Errors Found", <--Result if All Check OK

Substitute(

If(

Length(teHeaderNameFMC) = 0, <-- Name Invalid "Error_teHeaderNameFMC

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.