Jump to content

Valuelist format and/or [FMP-if] (trivial req.)


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

Recommended Posts

Posted

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!

Posted

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

  • 3 weeks later...
Posted

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]&nbsp;&nbsp;[/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

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