Hi Team,
I have text box to which data picker is attached and date picker have on change action , here when I tried add on click event in the text box it's not triggering. How to handle this scenario
Hi All,
Thanks for all your inputs, I found the solution by using on click event for the container.
Hi R.kar,
Not sure if I understand your question correctly.
If you wanna bind a handler to handle the input box on click event, you just have to bind the onclick Event to the input box, and after that, bind your handler with an action, then it should handle the scenario in your case.
Hope this help.
KL
Hi Kay Lun,
Normally if we bind the text box with on click event it is working, in my case text box is binded to date picker, in which data picker have on chage event which is working but on click event of text box is not working
May I know which version of OutSystems UI are you using? Cuz when I drag the datepicker widget to the screen, it should combined with a input box automatically, and the onclick is already bind to that input box, you should be able to use it directly without adding a new input box.
Thanks,
Clearly not understand your requirement. if you use onclick event it will trigger when you click on the text box.
Can you share a proper details how you using a input box with date picker so we can understand what is the problem you are facing.
Consider a text box widget to which date picker is added on clicking text box date picker will open to select the date, once date is selected it will appear in the text box, here on change event is triggered in date picker widget. My requirement is need to add click event in text box so I added on click event in the text box and used handler to handle the action but that event is not triggering.
In text box on click you already open data picker so it is not possible with outsystems default date picker so, you have to create your own date picker with text box but it may consume a lot of time but you can use only text box with data type of date and outsystem by default will create data picker icon on the text box and use can add on click event for text box so you can use both on click event and date picker
Hi @R.kar
Use OnChange event in your text box, because you are not clicking on your box instead value is changing when you select date.
I hope it'll help you.
ThanksDeep