How to set a dynamic default value for a field?

shiz
Tera Contributor

shiz_0-1731033562037.png

1 ACCEPTED SOLUTION

Hi @shiz ,

 

Do like below, Text getting auto converted, See in screenshot.

RunjayPatel_0-1731041622263.png

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

 

View solution in original post

Part 4. In this video i have talked about ServiceNow form, list, menu, sub-menu, application, table and more basic thing which are necessary to know. For document please visit: https://servicenowwithrunjay.com/ Follow Facebook page for latest update on upcoming videos: ...
3 REPLIES 3

Runjay Patel
Giga Sage

Hi @shiz ,

 

You can use below script in default value.

javascript:current.u_week_start_on

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

Part 4. In this video i have talked about ServiceNow form, list, menu, sub-menu, application, table and more basic thing which are necessary to know. For document please visit: https://servicenowwithrunjay.com/ Follow Facebook page for latest update on upcoming videos: ...

@Runjay Patel hello

shiz_0-1731040718760.pngshiz_1-1731040738037.png

ERROR:‘Invalid default value’?

How should we solve it? Thanks.

Hi @shiz ,

 

Do like below, Text getting auto converted, See in screenshot.

RunjayPatel_0-1731041622263.png

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

 

Part 4. In this video i have talked about ServiceNow form, list, menu, sub-menu, application, table and more basic thing which are necessary to know. For document please visit: https://servicenowwithrunjay.com/ Follow Facebook page for latest update on upcoming videos: ...