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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Changing the Right Label in User Defined Forms


Go to End


3 Posts   1114 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, 5523 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!