Hi Support,
Please let us know how to limit to select only one component.
Currently system allows to select multiple list of components. How to avoid that and restrict to one.
Venu
You will need a javascript which will check for the number of components selected and restrict the user for entering more than on component. (paste this script in the field description)
This Jtricks tutorial shows how to make the Fix versions field as single picker .You can refer this and get an idea .
try pasting the below script in the components field description
<script > var formId = AJS.$("#components").closest('form').attr('id'); AJS.$('#'+formId).submit(function() { var count = AJS.$("#components :selected").length; if (count > 1){ alert('You can select only one Component for an issue'); return false; } else { return true; } }); </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mizan,
I tried by adding above script under components description. But didn't work. Not sure what is stopping here. Please advise.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.