- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2022 11:53 PM
Hello
Kindly help me to do this task
scenario : I have a forum button on my table ,named as assigned to me . Whenever users clicks the button the current loggedin user should get populated on the field called "assigned to" and "assignment group" should be cleared if it is filled in.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2022 12:15 AM
You already have Assign to me UI action configured for task table, you can leverage that, you just need to add one line that I have shared above.
Please go to Left navigation > type UI actions > Search by name "Assign to me"
This will give you rough idea how to create this button for your table
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2022 12:38 AM
Awesome!
Glad that it worked out for you 🙂
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2022 12:42 AM
Hey,
I don't want to set the value for assignment group,here i want to clear the assignment group whenever assigned to field is populated with loggedin user.
How can i do that

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2022 12:02 AM
Hi,
Use setDisplayValue() to set the value in assigned to field in UI action.
Try this,
current.assignment_group = ' ';
current.assigned_to.setDisplayValue(gs.getUserName());//here i set the logged in username to assigned_to reference field
current.update();
action.setRedirectURL(current);
Please Mark Correct/Helpful answer if it help you in any way.
Thanks and Regards,
Vaishnavi Lathkar