Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Changing the Right Label in User Defined Forms


Reply


3 Posts   468 Views

Avatar
moxie

Community Member, 8 Posts

10 June 2012 at 2:31am

Hi all,

Just getting started with SS, and pretty well set. But I can't for the life of me figure out how the forms are getting spit out from the UserDefinedForms module.

Basically, right now it goes:

<div class "EditableTextField">
<label class="left">
<div class="MiddleColumn">
<label class="right">

I need to move .right about the input in Middle Column (since they really aren't floating anywhere). I've looked through the templates and model (under "codes") but I can't for the life of me figure out where to make the switch.

Any help greatly appreciated,

Best,

Martin

Avatar
Willr

Forum Moderator, 5513 Posts

10 June 2012 at 1:26pm

Userforms uses the built in form classes in SilverStripe. In 2.4 these are hard coded in the form field classes (see the function Field() and FieldHolder) on the form field you're adding (http://api.silverstripe.org/2.4/forms/core/FormField.html#methodFieldHolder). Your best bet is to use CSS to control the positioning.

Avatar
moxie

Community Member, 8 Posts

13 June 2012 at 2:20am

Thanks!