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
atallatall 

Usage of Input Hidden

Could anyone please let me know the usage of "Input Hidden" Tag If you can please let me know the same with a Practical Example, that would help me Thanks in advanced.
LakshmanLakshman

Hi,

 

<apex:inputHidden> means it wont be dispalyed in the page but can be accessed/set/reset through javascript or apex. It is basically used to temporarily store value, I have used it for client side pagination to store current pagenumber.

 

Details on apex:inputhidden attributes can be found here.

 

Regards,

Lakshman

Rajesh SriramuluRajesh Sriramulu

Hi

 

See This

 

 

<apex:inputHidden value="{!Visit__c.Current__c}" id="theField1" />
       <script> var theField1 = document.getElementById('{!$Component.theField1}'); </script>

<apex:commandButton onclick="theField1.value=current1;action="{!save}" value="save"/>

 

here the value is store in database wen we click save button.

 

Regards,

Rajesh.

Tejpal KumawatTejpal Kumawat

<apex:inputHidden> is same as In HTML tag <input type="Hidden"> . <apex:inputHidden> is use when you need values but not want to display on VF page.

atallatall

Thanks guys for your time and help. I'll try all these and let you know for any further questions