December 21, 200223 yr Ho, ho, ho folks! Please help if you can but I can live with this annoyance if I must... On my EDIT page, I have a field with a valuelist and radio buttons. I want it editable and to look like this: O meeting O lecture O workshop O other ______________________ (line is input box for FMP-field:eventtypeother) I was going to use an IF during the valuelist loop to show the FMP-field:eventtypeother input box, but I couldn't get it to work. Then I read in the posts that other folks have had trouble with IF's inside valuelist loops. So now, I almost have it the way I want without the IF, but I have to have an extra <BR> at the top I don't want. [FMP-ValueList: eventtype, list=eventtype_list] <BR> <input type="radio" name="eventname" value="[FMP-ValueListItem]" [FMP-ValueListChecked]>[FMP-ValueListItem] [/FMP-ValueList] <INPUT TYPE="text" NAME="eventtypeother" VALUE="[FMP-field:eventtypeother]"> If I move the <BR> to after my valuelistitem, the othereventtype field cannot show on the same line as the "other" option of my radio button. This is a trvial matter, I guess, but if anyone knows how to fix this, I'd appreciate it. Also, if you have successfully placed IF's inside valuelist loops, it'd be nice to see your code/syntax. Thanxalot!
December 27, 200223 yr How would it work if you used a table to display, and format, each item? Try this: <table> <tr> <td valign="bottom"><table> [FMP-ValueList: eventtype, list=eventtype_list]<tr><td><input type="radio" name="eventname" value="[FMP-ValueListItem]" [FMP-ValueListChecked]>[FMP-ValueListItem]</td></tr>[/FMP-ValueList] </table></td> <td valign="bottom"><INPUT TYPE="text" NAME="eventtypeother" VALUE="[FMP-field:eventtypeother]"></td> </tr> </table> Good Luck. Garry
January 16, 200322 yr hello you probable have solved the problem in the meantime. if not here is a slightly modified code to what garry had suggested. <table><tr><td valign="bottom">[fmp-valuelist:eventtype, list= eventtype_list] <input type="radio" name="eventname" value="[fmp-valuelistitem]" [fmp-valuelistchecked]> [fmp-valuelistitem] [/fmp-valuelist]</td> <td valign="bottom"><input type="text" name="eventtypeother" value="[fmp-field:eventtypeother]"> </td></tr></table> like this you would have one table less in your code. and by doing so the two last lines of the tabele, "other" and "[fmp-field:eventtypeother]" would be aligned on the bottom of the table best mimmo
Create an account or sign in to comment