
The Password field can store single-line text with masking. The text is not stored in a secure or encrypted way in the database by default. It functions like a regular password field for input only with masking. Think of this as a field that is similar to the Post Passwords.
Contents
Quick Start
- Fill out the Basic Field Settings (Label, Description, and Field Name)
- Select Field Type: Password.
- Click Save New Field (or Save Field if you’re updating an existing field) to save your field configuration.
Settings
- Maximum Length
The maximum length of text to allow (default: 255), you can set it to -1 to disable the limit. - HTML Placeholder
This is the text that will show on the input field when it is empty to help guide content entry. The placeholder is not a replacement for labels or description text, and it is less accessible for people using screen readers. For more details on the usage of Placeholder Text, you can read the documentation at W3 on Placeholders.
How to Display
Since this is a password field, you may not want to display it. If for some reason you need to, you probably need to do this with PHP. Below are examples of how to display it with a Shortcode or through PHP. Be aware that the output is not protected or encrypted in any way.
Display with a Shortcode
[pods field="my_password_field"]
Display with PHP: pods_field_display()
<?php echo pods_field_display( 'my_password_field' );
Display with PHP: $pod->display()
<?php $pod = pods(); echo $pod->display( 'my_password_field' );