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.

Selected value list items

Featured Replies

When I do a search for records, I want the page to come up with the selected record and it's correct data, but the drop-down menus should have the correct data selected.

Im using the following code to have the drop down menus contents entered, but it puts 'checked' in the <option> tag when I really need it to add 'selected' to the tag.

<select size="1" name="D1">

[FMP-ValueList:drop,list=drop]

<option [FMP-ValueListChecked]>[FMP-ValueListItem]

[/FMP-ValueList]

</select>

How can I get it to fill in the drop-down menu and still select the correct item in the menu? Again, 'checked' doesn't work.

I've tried using [FMP-IF:] statements, but they don't seem to be working within a [FMP-Valuelist] statement.

Can someone help please?

Thanks

this code should work, it's editable though.

<SELECT NAME="field name here">

[FMP-OPTION: field name here, list=value list name here]

</SELECT>

like i said, though, it's an editable field that shows what was selected and if they try and edit this record, it probably won't work. This should really only be used on the Record Detail Page.

On the search page, maybe you should just use this:

[FMP-FIELD: field name here]

which is non-editable and will show whatever has been selected.

Jeremy

[This message has been edited by yafreax (edited September 12, 2000).]

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.