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

Set default value


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?