Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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!

Posted

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

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 :)

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