Jump to content
Server Maintenance This Week. ×

Selected value list items


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

Recommended Posts

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

Link to comment
Share on other sites

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).]

Link to comment
Share on other sites

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