tweak to input type for variety form

This commit is contained in:
Nathan Coad
2019-09-10 18:45:03 +10:00
parent 37a138ba46
commit 248a9691cd

View File

@@ -45,7 +45,8 @@ function booking_variety_regn_form($node, &$form_state)
'#size' => 60,
'#required' => TRUE,
'#default_value' => !empty($data->booking_nid) ? $data->booking_nid : '',
'#attributes' => array(' type' => 'number', ' pattern' =>'[0-9]*'),
'#attributes' => array(' inputmode' => 'numeric', ' pattern' =>'[0-9]*'),
//'#attributes' => array(' type' => 'number', ' pattern' =>'[0-9]*'),
//'#ajax' => array(
// 'event' => 'change',
// 'wrapper' => 'booking_variety_form_wrapper',