Hi,
I want to remove a user in multiuser picker after clicking remove me transition. How to do a script in sil? Please help. Thanks.
Community moderators have prevented the ability to post new answers.
Hi Christian,
Just add the following script as a SIL post-function to the transition:
customfield_xxxxx = arrayDeleteElement(customfield_xxxxx, "username");
, where xxxxx is the multi user picker custom field id and "username" is the username of the user you want to remove.
Kind Regards,
Alex
Hi,
Thanks Alexandru. I have a question how can I force user to comment when I click and do a certain action. For example I have a dropdown wherein there are decisions in there and when I choose decline the user will be force to comment on why they decline. Please help. Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should take a look at our Blitz Actions plugin: http://confluence.kepler-rominfo.com/display/KBA/Home.
It lets you define a screen containing your decisions dropdown and a text area for entering the comment:
http://confluence.kepler-rominfo.com/display/KBA/The+Screen+Script
Then when pressing the submit button, will execute the action script, which can remove the user from the multi user picker custom field, as welll as adding the comment:
http://confluence.kepler-rominfo.com/display/KBA/The+Action+Script
Eg.: addComment(key, currentUser(), BA_getSingleValue(argv, "Comment"));
, where "Comment" is the label for the text area input
Regards,
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check this out: http://confluence.kepler-rominfo.com/display/SIL/getCommentIt was specifically designed for this type of validation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.