Universal Form Validator ASP Support Product Page

800a000d

Asked 13 Jan 2013 16:14:37
1
has this question
13 Jan 2013 16:14:37 Ed Stewart posted:
Using version 1.5.6

Page has one drop-down to select a customer's name from the list, with a " - SELECT CUSTOMER NAME - " as the first entry. This entry has no value, only a label (per Tedor's instructions at www.dmxzone.com/go/16816/validate-select-list-with-all-options-allowed-but-the-first/).

Added the Universal Form Validator to page. Selected correct field from the Validation page and added it to Validation Rules, and checked "REQUIRED". I'm not sure which rule I'm supposed to select other than "ALL FORMATS".

Submit the form, and an error is returned in the dropdown list "Type mismatch. C:\INETPUB\LOANMANAGER\LOGIN\MANAGER\LOANS\../../../ScriptLibrary/dmxValidator.asp"

Could you please provide some guidance on using this extension to validate drop-downs?

Replies

Replied 07 Feb 2013 10:18:16
07 Feb 2013 10:18:16 Miroslav Zografski replied:
Hello Ed,

Basically what you did is exactly what is needed. Can you provide the full error text?

Regards.
Replied 07 Feb 2013 14:00:30
07 Feb 2013 14:00:30 Ed Stewart replied:
Microsoft VBScript runtime error '800a000d' Type mismatch /ScriptLibrary/dmxValidator.asp, line 3242

If I submit the form with the invalid list item selected, the Form Validator shows the correct error message. However, selecting any other item on the list returns the above runtime error.
Replied 08 Feb 2013 09:11:04
08 Feb 2013 09:11:04 Miroslav Zografski replied:
Hello Ed,

Do you have a value attribute in your first select option?
If not set in an empty value attribute like:
...
<select name="select" id="select">
      <option value="">Select something</option>
...


Regards.
Replied 08 Feb 2013 11:04:31
08 Feb 2013 11:04:31 Ed Stewart replied:
No value attribute is set. My code is exactly as your sample.
Replied 26 Mar 2013 08:10:14
26 Mar 2013 08:10:14 Miroslav Zografski replied:
Hello Ed.

Please, Provide me the page in question on my e-mail:

Regards.
Replied 26 Mar 2013 15:11:54
26 Mar 2013 15:11:54 Ed Stewart replied:
Unchecking 'bot check' and correcting the form action has fixed my problem.

I have examined the code and determined there is a fundamental flaw in the way the extension is executed.

My form action is set to post to another page, but when your extension is applied, the form action is changed to <%=DMX_validateAction%>. This function is defined in ScriptLibrary/dmxValidator.asp as form page url plus the querystring. This is a problem. Your extension should provide an input field so I can input the form action. For you to assume that every form should post to the same page is wrong.
Replied 24 Aug 2013 16:12:41
24 Aug 2013 16:12:41 Ed Stewart replied:
Hello? Did anybody read about this fundamental error?

Reply to this topic