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.

A twist on CristyCT's post...

Featured Replies

Hi folks,

CristyCT's post "Formattting a value list on a search results page" speaks of putting check boxes in a search results form with the field value from the record checked.

My twist is this: How is it possible to have the checkboxes displayed with all the values that have been selected from a REPEATING field, rather than a normal field?

When I try the normal approach to this (i.e. [FMP-VALUELIST: , LIST=] <INPUT TYPE="checkbox" NAME="" VALUE="[FMP-ValueListItem]"[FMP-ValueListChecked]>[FMP-VALUELISTITEM]

[/FMP-VALUELIST] ) All it checks is the value that is in the first block of the repeating field.

Thanks in advance for all your help.

It sounds like you may have a lot of work ahead of you. A brand new design. Success is dependent on good design.

Eschew repeating fields. (bad design, no donuts)

Try a relationship and portals.

Here is one I used some time ago for keeping a list of sports:

<tr>

<td>Sporting<br>

<script>

sFldValue = "";

[FMP-Repeating: sporting]

sFldValue = sFldValue + ":[FMP-RepeatingItem]";[/FMP-Repeating]

[FMP-ValueList: sporting, List= vlsports]

if (sFldValue.match(":[FMP-ValueListItem]"))

{document.write('<input type="checkbox" name="sporting" value="[FMP-ValueListItem]" checked>[FMP-ValueListItem]</option><br>');}

else

{document.write('<input type="checkbox" name="sporting" value="[FMP-ValueListItem]">[FMP-ValueListItem]</option><br>');}

[/FMP-ValueList]

</script>

</td>

</tr>


I have removed the formating, we had it displaying in columns.

Hope this helps.

Garry

  • Author

Thanks Garry, it works great.

However, the purpose of page I'm using the script on is an edit page, and it doesn't seem to want to edit...

Any suggestions?

Do you have a:

<input type="hidden" name="-recid" value="[FMP-CurrentRecID]">

line in there somewhere?

Are you receiving any error messages?

Good Luck.

Garry

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.