Not able to Override the default value for "Valid to" field

ASHA22
Kilo Contributor

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?

find_real_file.png

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

did you try to use onLoad client script on your custom table and clear the value which gets auto-populated?

Regards
Ankur

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

yes i have tried But it doesn't work

Allen Andreas
Administrator
Administrator

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!

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.