Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Hi All, Want to make a date field readonly but it should allow calender to choose date in workspace

Venkatesh098765
Tera Contributor

Hi All, I Want to make a date field readonly or the input box hould be disabled but it should allow calender to choose date in workspace. I tried with ui policies and client scripts but the calender is also becoming readonly in workspace any approach or suggestion here plz?

9 REPLIES 9

@lakshaysharma 

got it.

in that case your script will work in native UI but not sure if it works in Workspace

Did you try that in workspace?

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar 

Yes you are right my script works reliably in Classic/Native UI, but in Workspace it depends on how the field is rendered. For a fully Workspace safe solution using UI Builder properties or the Workspace compatible client script approach would be more reliable.

@Ankur Yes, you are right my script works reliably in Classic/Native UI, but in Workspace it depends on how the field is rendered. For a fully Workspace-safe solution, using UI Builder properties or the Workspace compatible client script approach would be more reliable.

@Ankur Bawiskar 

Yes, you are right my script works reliably in Classic/Native UI, but in Workspace it depends on how the field is rendered.

@Ankur Bawiskar Yes, you are right; my script works reliably in the Classic-Native UI, but in Workspace it depends on how the field is rendered.