Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

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

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

@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

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