April 29, 200322 yr In some HTML Selects inputs, the associated value is different from the one shown to the user in the list. i.e. <select name="test" size="1"> <option select value="somevalue1">Test1 <option select value="somevalue2">Test2 <option select value="somevalue3">Test3 </select> How can I use the value that is different from the list that is shown to the user. What I have is a FMP-Option showing the filenames and I want the value of the select to be the filename uniquie id number. Is this possible since FMP-Option already creates the <option tag>
April 29, 200322 yr Author I have in my HMTL code: <select name="fileID"> <option value="">Choose File:</option> [FMP-ValueList: fileID, List=VersionFileName ] <option value="[FMP-ValueListItem]">[FMP-ValueListItem]</option> [/FMP-ValueList] </select> For some reason, the value of each option are the files names in the value list versionfilename. How do I get it such that the value is the fileID and the list actually shown are the filenames fileID is a field that has a corresponding valuelist of file IDs. Thanks.
April 29, 200322 yr If I unerstand correctly: you would like to have eg.: John -(value 1) Smith - (value 2) Jack - (value 33) Mr.Z - (value 77) where values 1,2,33,77 come from eg. "UserID" field and John,Smith,Jack,Mr.Z come from field "UserName" right? I have not done this so I do not know if it will work but what you could try is in FM make your list "VersionFIleName" set as = to filed UserID and then in CMDL/HTML ....<option value="[FMP-ValueListItem]">[FMP-field:UserName]</option>... so when a user click on drop-down they will see User Names but submit the UserID.... as I said I don't know if this works in practice...but it "sounds good to me" in theory! now go get lucky
April 29, 200322 yr Check this thread, it may have an answer: http://www.fmforums.com/threads/showflat.php?Cat=&Board=UBB22&Number=51804&Forum=UBB22&Words=valuelist&Match=Entire%20Phrase&Searchpage=2&Limit=25&Old=1year&Main=51754&Search=true#Post51804 Good Luck. Garry
April 30, 200322 yr well I tryed.. but macaroni you "probably" *should follow Garry's link... I am a "sheep" when it comes to CDML and I just "graze"....barely got my "sheep skin" LOL
Create an account or sign in to comment