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.

Formatting Value List in an entry Form- one value per line

Featured Replies

On a web entry form with radio buttons using a valuelist, some of the choices have the radio button on the far right of the line above the wording of the choice, making that choice confusing.

Is there a way to force each value to have a new line? (Or enforce orphan protection, so at least each choice has a couple of words next to the radio button?)

Here is an example where there is a button for BISC650 next to BISC432 text:

confusing_valuelist.png

Here is the current code (Valuelist and field are both called 'position'):


<?php $fieldValue =		 $record->getField('position', 0) ; ?><?php getInputChoices("radio", $layout->getValueListTwoFields('position', (isset($master_record)) ? $master_record->getRecordId() : $record->getRecordId()), $fieldValue, getFieldFormName('position', 0, $record, true, 'RADIOBUTTONS', 'text'), 'text', $submitDateOrder);?>

I tried using a hyphen in the value list, but that showed as a choice (rather than a new line as in a Filemaker client).

We are using Filemaker 10 server. Thanks for any suggestions!

  • Author

It actually works on the website to put <br /> and &nbsp; in the value list:

Lecturer<br />

Instructor - BISC101 <br />

Instructor - BISC432 <br />

Instructor&nbsp;-&nbsp;BISC654

However, when the form is submitted, '<br />' is visible to people viewing the field with a Filemaker client (nbsp; is not, at least not visibly!). Any suggestions for cleaning up the submission, or a different coding character for a hard return- I tried other 'return' characters...

Lecturer &#12;

Instructor - BISC101&#10

Instructor - BISC432&#13;

Instructor - BISC650 <br />

Instructor&nbsp;-&nbsp;BISC654

But none of these (except <br />) worked.

  • 7 months later...

I got the same problem.

 

here is the fix :

 

Find the getInputChoices function int he fmview.php file and there you can modify the html code generated by the function...

 

Martin :)

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.