Jump to content
Server Maintenance This Week. ×

Add Dynamic Value Lists


arnica

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

Recommended Posts

I am strill trying to use the CDML field(dynamic) in an add WEB file. However, all it puts on the WEB page is the code and does not pull from the database the required Value list. Following is the code:

email: <select name ="email">

[FMP-ValueList: email , Results]

<option> [FMP-ValueListItem]

[/FMP-ValueList]

</select>

All that appears is [FMP-ValueList: email , Results]

<option> [FMP-ValueListItem]

[/FMP-ValueList]

I tried the following:

Try the following code:

email:<select name="email">[FMP-option: email, list=Results]</select>

This should do it. If you add: <option VALUE="" SELECTED>- Select - before the FMP-option tag, none of the valuelist options will be automatically selected.

Example:

- Select - (This will be automatically selected)

Valuelist Item #1

Valuelist Item #2

etc..

Hope this helps.

JM

However this does not work either. Does anyone know if since this is an add form if I need to put the full path as in a <a href....> before I put the <select>? I have tried this but I cannot seem to get the code correct.

Jo Ann

Link to comment
Share on other sites

You cannot browse these format files directly in the browser, you have to instruct Web Companion to "build" them with some sort of adtion tag -- the -View action is the most convenient.

This means that loading your page will be a two-step process: one goes to a "static" html page that has a link on it with the CDML codes needed to generate the page. This will be something like..

FMPro?-db=file.fp3&-lay=layout&-format=page.htm&-error=error.htm&-View

Your fancy web page will be generated once the user clicks on the link. Alternatively some people use a META refresh to automatically redirect the user to the FMP? url.

Link to comment
Share on other sites

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