Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Do you guys have some tutorial on how more checkboxes can be selected using SIL?
In an issue I have some value already set in a Custom Field of type Checkbox. I need to add more to the selected checkboxes, but I cant find a way to get available values and mark them as checked for that issue. Is this even possible using SIL?
If yes, can you point me to the API or tutorial or something?
If no, is there a workaround for this?
I have used lfExecuteJS to call a script to set values of things:
AJS.$(document).ready(function() { var project = AJS.$("#project-field").val(); if(project=="ABC") { AJS.$("#customfield_11600 option[value=11202]").attr("selected", true); } else if(project=="123") { AJS.$("#customfield_11600 option[value=11220]").attr("selected", true); } else if(project=="XYZ") { AJS.$("#customfield_11600 option[value=11216]").attr("selected", true); } });
This will not work on every screen. That's the magic of Live Fields. We handle all these cases for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good to know, thanks Silviu!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Salman,
You can use the Live Fields routine lfSet to change the checkbox selection. We don't have any routines to get the available options for a field, but you can create an improvement on http://bugs.kepler-rominfo.com/.
Best regards,
Silviu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
lfSet can only be used to set the value on Screen. Can simply do %issueKye%.fieldName = {Val1, Val2} ? Will it save Val1 & Val2 as values on the Server? And what happens when one of the Value is not available for the Checkbox?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Salman Kagzi Yes, you can change it using this syntax, it will save any valid option. If only Val1 is a valid option, Val2 will be ignored. If they are both valid, they will be saved, of course.
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.