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
sfpsfp 

apex:inputSecret tag value is empty even assigned controller value also?

Hi All,

 I have used apex InputSecret tag in vf page. And assigned object field value, even its showing null value.

<apex:inputSecret value="{!inputValue}" id="theSecretInput"/>

value="" is null one I have open the vf page in browser. 

Please help this issue.

Kind Regards,
Mohan
Best Answer chosen by sfp
David ZhuDavid Zhu
You may miss redisplay attribute of inputsecret.

<apex:inputsecret value="{!inputValue}" redisplay= "true"/>

All Answers

David ZhuDavid Zhu
what if you change <apex:inputsecret> to <apex:inputtext>?
sfpsfp
Hi David, 

If I have changed inputtext the value displaying.
   

 
David ZhuDavid Zhu
You may miss redisplay attribute of inputsecret.

<apex:inputsecret value="{!inputValue}" redisplay= "true"/>
This was selected as the best answer
sfpsfp
Thank you very much :)