You are viewing limited content. For full access, please sign in.

Question

Question

Forms: Date Picker Focus

asked on July 7, 2016

Hey,

I'm trying to set a date field to not show the pop up when the user clicks inside or tabs (focus) to the field. I'd like them to be able to open the pop-up by clicking on the image icon only. However, when looking at the 'showOn' property it is already set to 'button' by default. Does anyone know how I might be able to get around this?

0 0

Answer

SELECTED ANSWER
replied on July 7, 2016

Hi Ronald,

Try adding this to your custom JavaScript:

$(document).ready(function(){
  $(document).off('focusin', '.hasDatepicker');
})

 

3 0

Replies

replied on July 8, 2016

Perfect! Thanks Rui!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.