Jump to:

10841 Posts in 2512 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Changing the Right Label in User Defined Forms

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 347 Views
  • moxie
    Avatar
    Community Member
    8 Posts

    Changing the Right Label in User Defined Forms Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Changing the Right Label in User Defined Forms Link to this post

    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.

  • moxie
    Avatar
    Community Member
    8 Posts
    347 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.