jbh83 Posted August 1, 2002 Posted August 1, 2002 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.
Keith M. Davie Posted August 1, 2002 Posted August 1, 2002 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.
Garry Claridge Posted August 1, 2002 Posted August 1, 2002 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
jbh83 Posted August 7, 2002 Author Posted August 7, 2002 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?
Garry Claridge Posted August 7, 2002 Posted August 7, 2002 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
Recommended Posts
This topic is 8213 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 accountSign in
Already have an account? Sign in here.
Sign In Now