- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2021 07:39 AM
Hi all,
we want to give the possibility to Change Author of KB article and since this field is read-only (OOB), to do this,
I created an ui action "Change author" which calls a ui page that lists the active users as shown below :
the problem is that I can not modify the KB with Published Retired and Outdated status (the Save doesn't work),
the operation works very well for the rest of the cases : Draft, Review, Sheduled for publish and Pending retirement
my ui page Client script :
uBest regards,
Solved! Go to Solution.
- Labels:
-
Multiple Versions
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2021 09:57 PM
Thank you for marking my response as helpful.
If my response helped you please mark it correct to close the question so that it benefits future readers as well.
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-31-2021 07:45 AM
Hi,
since it is readonly you cannot set it unless you try to make it readonly false
g_form.setReadOnly('author', false);
// then set the value.
If this doesn't work then use GlideAjax and update the author using Script Include function which would definitely work
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-31-2021 07:54 AM
Hi,
thank you for your reply
certainly the author field is read-only but I can modify it if the status is one of: Draft, Review, Sheduled for publish in this case my script works very well it changes the author and saves the modification
Best Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2021 07:55 AM
try either of the approaches and it should work fine
If my response helped you please mark it correct to close the question so that it benefits future readers as well.
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
09-01-2021 04:58 AM
Hi,
More details for the GlideAjax?
thanks!