View Single Post
  #2  
Old 04-20-2018, 04:26 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: DatePicker input on my Form Field

Hi Alex,

Try to use \XLite\View\FormModel\Type\DatepickerType as self::SCHEMA_CLASS.

Tony

Quote:
Originally Posted by Soptareanu @Alex
Hello, I want that one of my input fields in form show a datepicker. I use this class when i define my field, but it doesn't work.

'date' => [
self::SCHEMA_CLASS => '\XLite\View\FormField\Inline\Input\Text\Date',
self::SCHEMA_LABEL => static::t('Date'),
self::SCHEMA_PLACEHOLDER => static::t('Date'),
self::SCHEMA_REQUIRED => true,
],
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote