Join Now

Click here to join our
growing community:



Welcome Tour
Pro Modules

Copyright © 2020
Terms of Use
Privacy Policy



A password input field is very similar to a text input field, except the value is obscured. Here's how you do a basic password input field:

[password mypass][submit]

Here the field is mypass and no default value is assigned. This is how you would normally use it.

You can assign a default value, and even preserve post values just as with a text input field. Please see that tutorial for details.

Additional Parameters

BoltWire adds the following commands to filter and/or modify user input:

required, filter, if, case, trim, fmt, strip, lines

The required parameter conflicts with the HTML5 parameter, which is allowed. That is, if you set required=true, HTML5 browsers will block form submission--before BoltWire has a chance to. Older browsers will not recognize the parameter and ignore it, allowing BoltWire's check to kick in. If you want to rely fully on BoltWire so all users have the same experience, you can reset the HTML parameters allowed in config.php to not include "required". You can see the default value in variables.php.

By default the following html parameters are allowed:

name, value, size, maxlength, class, id, style, disabled, autofocus, autocomplete, readonly, required

To override the default message created when a form fails some input check, set msg to the value you wish, or set it to false to turn it off.

For information about how to insert javascript into a form element, please see that tutorial.