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.

Required field on web form using CDML, HELP

Featured Replies

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>

Try this:

--------JAVA SCRIPT

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

if (document.testform.ori.selectedIndex < 0){

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

return false

}

return true

}</script>

Garry

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.