function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dai tran 6dai tran 6 

How can mark password when input?

I using inputfield to insert an MyAccount:
UserName: <apex:inputfield value="{!acc.UserName__c}" />
 Pass: <apex:inputfield  value="{!acc.Pass__c}" />
 <p>
            <apex:commandButton value="Save"  action="{!save}" /> 
</p>
Current : Pass only mark is "*" after click save.
Can I mark pass when input?
 
Best Answer chosen by dai tran 6
Ajay K DubediAjay K Dubedi
Hi Dai,

You can use in these two ways. Hope it helps you. 

<apex:inputSecret value="{!acc.Pass__c}" id="theSecretInput"/>

<input id="theSecretInput" type="password" name="theSecretInput" value="{!acc.Pass__c}" />

Please select as best answer if it helps you.

Thank You,
Ajay Dubedi