1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Set default value

Discussion in 'XenForo Development Discussions' started by Claudio, Aug 13, 2012.

  1. Claudio

    Claudio Well-Known Member

    I am working on an addon and I want to set the default value of a variable that is set through the adimin options.

    So I want to delete this text box from the admin options panel and set the value I want by default:
    <option option_id=afterpost_html" edit_format="textbox" data_type="string" can_backup="1">
          <default_value>DEFAULT VALUE I WANT TO SET</default_value>
    If I delete edit_format="textbox", I get this error "Please enter a valid value." when I try to install the addon, so how can I do to hide or delete the textbox?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page