Jump to content

Required field on web form using CDML, HELP


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

Recommended Posts

HELP,,, I have a form with a field "ori" and listvalue coming from the db as session (example below). I want to make the field required to select a value by user. If not selected then a pop window will remind or not continue if submitted. I tried javascript, and it works with text fields but with example below, not at all. Help needed. Thanks in advance.

--------JAVA SCRIPT

<script language="javascript">function validate(){

if (document.testform.ori.value==""){

alert("No Orientation Session. Please Enter a Session!")

return false

}

return true

}</script>

----------FORMAT

<FORM ACTION="FMPro" METHOD="post" name=testform onsubmit="return validate()">

<INPUT TYPE=hidden NAME=-DB VALUE='enrdatab'>

<INPUT TYPE=hidden NAME=-Lay VALUE='web'>

<INPUT TYPE=hidden NAME="-Format" VALUE="record_detail_replyo.htm">

----------field on form

<select name ="ori">

[FMP-option: ori, list=session]

</select>

Link to comment
Share on other sites

This topic is 6971 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.