Page 1 of 1

Interacting with jQuery date picker

Posted: Thu Jan 13, 2022 8:28 am
by mygis
Hello,
I am using WWB Ver 17.x and I am trying out stuff with the date picker. I am using the "jQuery UI - Flexible" in a form that contains a textEdit or a text box in the same form . I do not understand how I can interact with the date picker since there is no event property tab? I would like to change the content of the textEdit based on the date picked by the user. Is it possible to achieve that?

Thank you.

Re: Interacting with jQuery date picker

Posted: Thu Jan 13, 2022 12:11 pm
by Pablo
jQuery Date Picker is a third party script, you can find more information about it here:
https://api.jqueryui.com/datepicker/

Re: Interacting with jQuery date picker

Posted: Thu Jan 13, 2022 1:18 pm
by Joe_120
Instead of using flexible use overlay. Make it the same size as your other form elements. This will show as an editbox which you can use just like any other editbox. If there is something else you want to do with it, post back.

Joe

Re: Interacting with jQuery date picker

Posted: Fri Jan 14, 2022 12:53 am
by mygis
Thank you all for your replies.
@Joe_120, your idea is good, however I need the information to be populated in a text box to create some complex url dynamically based on the date.
I have found the solution; in the property box of the date picker, under "custom options ----> options" , I just added the following line:

onSelect: function(dateText){ txtDate.value = dateText; }


dateText being the selected date

and

txtDate being the name of the text box in the form.

I hope this will help users in the future.

Thanks