Skip 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.

showing values in a pop-up menu

Featured Replies

I am trying to show in a pop-up menu, the values of a certain field called "diagnosis" in the database so the user can do a search. Do I have to hard code it? I've tried the following code to see if I can get it to dynamically display all the different diagnosis fields in the database:

<SELECT NAME="Diagnosis">

<OPTION VALUE="" SELECTED>All [FMP-option: Diagnosis]

</SELECT>

The above code is contained in a webpage called search.html which I am calling by pressing a button on a different webpage. Is the above code correct? Also, what should the button that calls it have in its code?

[FMP-Option] is only used if the you have a FMP Value list applied to that field in the layout. Else, you would have to use the [FMP-Record] tag in conjunction with the [FMP-Field] tag.

Check the 'CDML Reference' database for a full description.

Hope this helps.

Garry

And to save you some time and trouble, related value lists (value lists based on a relationship) don't work at all over the web.

I was able to do it by making a value list of the field contents (in this case the field Contractor has a value list named Contractor.

The link to the format page is:

<a href="http://hostnamehere/FMPro?-db=Project%20Database&-lay=WorkLayout&-format=vltest.html&-view">Value

List test</a>

and the body of the format page looks like this

<body>

<FORM ACTION=FMPro METHOD=POST>

<INPUT TYPE=hidden NAME=-DB VALUE='Project Database'>

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

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

<INPUT TYPE=hidden NAME="-Error" VALUE="record_detail_error.htm">

<INPUT TYPE=hidden NAME="-recid" VALUE="[fmp-currentrecid]"><BR>

<select name="Contractor">

[FMP-ValueList: Contractor, LIST=Contractor]

<option value="Custom=[FMP-ValueListItem]">[FMP-ValueListItem]

[/FMP-ValueList]

</select>

</form>

</body>

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.