Forum


Calc Builder Support

Calc Builder support
Forums
Public write access is disabled. Please login

Date () 18.06.2015 15:03

How do I set a field to always show "today" - and not allowing the user to change that ?

J-)

Re: Date () 18.06.2015 20:46

Hi,

You can use datepicker functions on a field typed 'date'. Add this code on first tab of 'Javascript events'on your calculator, replacing 'today' with the variable name of your field.:

CB("input[fldname=today]").datepicker({ minDate: 0, maxDate: 0});
CB("input[fldname=today]").datepicker( "setDate", "+0" );

More information about datepicker can be found here: https://www.moonsoft.es/en/help/2-cbsupport/2809-validate-date

Regards,
Moonsoft Team
www.moonsoft.es
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Our clients' feedback