Jump to:

10931 Posts in 2614 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Set Default Value in UserForm

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 463 Views
  • quanto
    Avatar
    Community Member
    81 Posts

    Set Default Value in UserForm Link to this post

    I'd like to know if there's any posibility to get the label ($NAAM) as default value in the input field of the UserDefinedForm?

    Example:

    <div id="EditableTextField1" class="field text requiredField">
    <label class="left" for="Form_Form_EditableTextField1">$NAAM</label>
    <div class="middleColumn"><input type="text" class="text requiredField" id="Form_Form_EditableTextField1" name="EditableTextField1" value="$NAAM" /></div>
    </div>

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Set Default Value in UserForm Link to this post

    I'd like to know if there's any posibility to get the label ($NAAM) as default value in the input field of the UserDefinedForm?

    Nothing built into the module to support this but if you require it, perhaps add a Default Value setting to EditableTextField::getFieldConfiguration(). Would be a good enhancement to commit back to the module if you get it working!

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