Jump to content

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

Recommended Posts

  • Newbies
Posted

Ive been working with claris homepage 3.0 becuase its the only thing i have found that dose CDML. I want to create a page where users can create a new cource. However I cant seem to make the pop up menu work. This is the code i have been using:::::

<P><FORM ACTION="FMPro" METHOD="post">

<P><INPUT TYPE="hidden" NAME="-DB" VALUE="ihBHDSCource.fp5">&nbsp;<INPUT TYPE="hidden" NAME="-Lay" VALUE="crs_edit">&nbsp;<INPUT TYPE="hidden" NAME="-Format" VALUE="crs_view">&nbsp;<INPUT TYPE="hidden" NAME="-Error" VALUE="error.htm"><Select name="crs_type">

[FMP-ValueList: crs_type, List=crs_list]

<option [FMP-ValueListItem]>[FMP-ValueListItem][/FMP-ValueList]

</Select>

Any clues? Many thanks

  • Newbies
Posted

You are a brilliant person. May all deities hold you in high places. but i now have another problem and i know i have seen a solution to it but ill take time to post the question now.

My value list only shows the ID numbers (first field) and not the name (second filed) in a related popup menu. I was told it had something to do with making the second filed unique but there is no way that someone's name is unique. I know i have two bens. Can you make a caluclated field that is unique?

Would that fix it.

  • 1 month later...
Posted

I'll borrow this thread a bit smile.gif

Garry, you said that related valuelists don't work? I've been strugling to create a pop-up menu on my website that would display values from my "Category1"-valuelist. I would like to use this valuelist to populate a <select> popup when I add records to a portal in FM. Now I just get empty <option></option> tags in my output.

My problem is that I cannot populate the <select> tag. I would like to display a valuelist (category1) from my main database (the contents of that valuelist are actually from another database). Is this what you were talking about and is this impossible to do with CDML? Any tips how I could populate the valuelist if it's not possible directly with plain CDML. I've tried [fmp-option], [fmp-valuelist], etc but I just cannot get any values out of my valuelist. This same markup works on other pages with normal valuelists.

Many thanks, Haret (and thanks for all the help you've previously given)

Btw. forgive my typos, it's midnight here in scandinavia and my english tends to take a turn for the worst when I'm tired wink.gif

Posted

Re: my english tends to take a turn for the worst when I'm tired

So does mine, and it is the only language I know wink.gif

You can use [FMP-InlineAction] tags to achieve this. For example:

...

<select name="Category">

[FMP-InlineAction: -db=otherdb.fp5, -lay=web, -view]

[FMP-ValueList: Category, List=Category1]

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

[/FMP-ValueList]

[/FMP-InlineAction]

</select>

...

Good Luck.

Garry

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