Prevent automatic calendar pop-up - El Toro - Find articles about Visualforce, Apex, Force.com and Salesforce in general

Print Preview

Prevent automatic calendar pop-up

When the <apex:inputField /> is used for a Date or Date/Time field, a very handy calendar gadget is used to help the user select the desired date, but when this field is at the top of the page, it automatically opens up whn the page loads which may be not desirable.

This Visualforce code how this automated behaviour can be disabled:

<script> 
	function setFocusOnLoad() {} 
</script>

comments powered by Disqus

© El Toro . IT @ 2013
Andrés Pérez