November 29, 200421 yr Newbies 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"> <INPUT TYPE="hidden" NAME="-Lay" VALUE="crs_edit"> <INPUT TYPE="hidden" NAME="-Format" VALUE="crs_view"> <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
November 29, 200421 yr Is your problem that the <select> is not rendering into HTML code, however remaining as CDML? If so, you need to have FM "process" the page first, i.e. the page needs to be "called" with something like this: http://myaddress/FMPro?-db=ihBHDSCource.fp5&-format=thepage.html&-view Good Luck. Garry
November 30, 200421 yr Author Newbies 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.
December 1, 200421 yr Related ValueLists do not work through WebCompanion You can use an [FMP-InlineAction] to achieve the same effect. Or, maybe a Calculated field would be better for your case. All the best. Garry
January 11, 200521 yr I'll borrow this thread a bit 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
January 11, 200521 yr 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 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
January 16, 200521 yr Thanks a lot for the example. I quess it's time to start learning more about those inlinaction tags.
Create an account or sign in to comment