How to define two default values in one field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 05:46 AM
Hi
Thank; Shir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 05:51 AM
In the Dictionary Entry for the field, list the two user record sys_ids separated by a comma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 06:20 AM
Hello @Shir Sharvit ,
you can do that as @Brad Bowman mentioned with static sys_ids or you can use javascript to get your values you just need to return a comma-separated string with ids from the sys_user table you can do that with a Script Include or with a system property that contains your comma-separated sys_ids>
you can use way like :
javascript: gs.getUserID() +',<sys_id from user table>'
javascript: new yourScriptInclude().yourFunctionToGetUsers()
javascript: gs.getProperty('<name of the property that contains the users>')
All you need to return is a comma-separated string to the Default value field.
Hope that this helps you!
If the provided information answers your question, please consider marking it as Helpful and Accepting the Solution so other community users can find it faster.
All the Best,
Stefan