Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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!

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...

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

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.