Help with datePicker

Hello
I am trying to pick a date on a webpage since the value is readonly. I saw another related post in the forum wich said that you could remove the flag and set the value of the date, but I didn’t manage it.
Could yo help me, please?
**


**

Hi Isandinop,

I would probably try to remove the readonly attribute. You can do this with an Execute JavaScript node:

Afterwards, you can simply send the input using the “Send Keys” node:

Hope this helps!

–Philipp

Hi Philipp
Thanks for your answer. I’m really new on JavaScript, so I’m not so sure how to edit the script. Is there any example I can use to gide me?
Thanks

I built an example workflow which removes the readonly attribute from a <input>, so that you can use Send Keys, Clear, etc. to edit it afterwards.

I have shared it on my NodePit Space, you can find it here:

Hope it helps!
–Philipp

2 Likes

Thanks Philipp!!
You are my hero! It worked and I learned a lot.
Thank you very much.

2 Likes

Great – I’m happy to hear! :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.