Not able to Override the default value for "Valid to" field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 07:54 AM
We have a Child called FAQ which is extended from Knowledge table.
In FAQ table we want "valid to" field should be manually updated from user, meaning it should not set default value.
For this i have created a dictionary override , to override the default value. but its not working.
its setting to-01-01-2100
how can i make the valid to field to be empty.
Can you please help me on this?
- Labels:
-
Scripting and Coding
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 08:02 AM
Hi,
did you try to use onLoad client script on your custom table and clear the value which gets auto-populated?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 09:27 AM
yes i have tried But it doesn't work

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 08:08 AM
Hello,
To explain what is going on, there's another field called: Article Validity, that is used to set the default value on the valid_to field.
If you null out the article validity field, then there's a client script: "Change Default Article Validity Date" that then runs and called a script include to then set the value for the valid_to field.
So you'd need to disable the client script mentioned above AND clear the default value from the valid_to field and I believe that would take care of it.
Otherwise, you can try and set a client script with a higher order number to clear the value from the valid_to field onLoad, if that's something you'd like to do.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 09:36 AM
We can not disable the Client script as other knowledge bases need that functionality.
I tried Creating client script with higher order but that doesnt work.