How do I insert line breaks between options in a P&T radio button option list in a safecracker form? The tag displays, but all the lines are run together.
I tried using a
tag at the end of each label
[code] value : label
[/code]
That works on the safecracker form, but then I am stuck with the extra
when I want to display a field label in a regular template.
Probably an easy answer, I just can't seem to find it!
Thanks!
Line breaks between options in P&T {field:field_name} radio and check lists
-
If you want to customize the HTML output of the field at all in your SAEF, you’re probably best off just typing out the HTML yourself, rather than using the {field:field_name} tag.
The P&T Field Pack fieldtypes are especially easy to customize, since they're just the basic HTML inputs – no JavaScript, CSS, etc.
You can use the field's normal HTML output as a starting point. To get that, with the {field:field_name} tag in place, view the SAEF in your browser, view the HTML source, and search for name="your_field_name". -
-
-
-
Now, if I do copy the html as you desribed, I wonder how to display the {checked} value when using the safecracker to edit entries, rather than to just post a new entry.
Is there a way to place this in the html? I tried {checked}, but it was ignored. -
-
For P&T Radio Buttons, you can do this:
<input type="radio" ... {if field_name == "option_value"}selected="selected"{/if} />
And for P&T Checkboxes, do this:
<input type="checkbox" ... {if "{field_name:selected option="option_value"}"}selected="selected"{/if} /> -
-
-
Loading Profile...


Twitter,
Facebook, or email.

EMPLOYEE
