• Resolved er_smanoj

    (@er_smanoj)


    Hi,

    As a developer, am so thankful for providing such a time saving plugin.

    I have installed the plugin in one of my wordpress and try to have placeholder for all the fields.

    But am not able to have placeholder for password field alone. If i do the settings in form settings, the placeholder displays as dots. Is there any way to have placeholders for password field.

    Thanks,
    Manoj

    https://wordpress.org/plugins/si-contact-form/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Manoj, I think this might be a bug or it was left like this on purpose because it is a Password field. However I will ask @mike Challis the developer to investigate further.

    Thank you

    Password fields on forms always display as dots for security reasons. Perhaps you can use a text field instead?

    Thread Starter er_smanoj

    (@er_smanoj)

    Hi Mike,

    Thanks for your reply.

    As you mentioned, the values in password filed will be display as dots for security reasons. But I need to have the placeholder text for password field. Since the placeholder is going to display before entering the password, i tried to showed it as other fields.

    We are trying to achieve this having the text in value field and remove the same when user clicks on the field to enter password.

    Kindly let me know if there is any other way to achieve this.

    Thanks

    You can enable the Password field placeholder by pasting the following code immediately after line 614 in the includes/class-fscf-display.php.

    if ( 'true' == $field['placeholder'] && $field['default'] != '') {
       $string .= ' placeholder="'.esc_attr($field['default']).'"';
       self::$placeholder = 1;
     }

    Thank you whatsanoob
    I added this code to the program. It will be included in the next release.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need to have placholder for password field’ is closed to new replies.