Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to dynamically show Drop down box based on a selection in a multi-checkbox

 Hi All,

Can any one help me out in doing the following 
I want to show a drop down with the enumeration list when the user select the Classification as Security risk.

Thanks in Advance
Surender

1

0 votes



3 answers

Permanent link
Please have a look at https://jazz.net/library/article/1093 Lab 4 for how a 'Dependent Enumeration' works. This also explained here:
  • https://jazz.net/library/article/1003
  • https://jazz.net/wiki/bin/view/Main/AttributeCustomization 

I am assuming the classification is also an enumeration. I am not aware it works with all types of input values. If you have a different input value, you could use JavaScript as explained in the workshop and in https://jazz.net/wiki/bin/view/Main/AttributeCustomization . 

0 votes

Comments
Thank you Ralph Schoon.
 I want to show the drop down only when the user selects a particular value in the Classification(Multi-select) otherwise I need to hide that drop down.


by using the dependent enumeration I dont think we can hide/show attributes based on a the value.

Thanks
Surender


Permanent link
Sorry, misunderstood the question somewhat. As far as I know, there are only the available selections to hide in the editor presentations. There is no hide on condition, as far as I am aware. You can use a (JavaScript) condition to make an attribute read only as an alternative. The links above still apply for this approach.

0 votes


Permanent link
 Thanks Ralph Schoon!

I tried using the Read only attributes for condition. But I see some strange behaviour .Here it goes

 I created a javascript which will return false for risk and true for other values.

Step 1: select input other than risk O/P: field is readonly
Step2 : deselect the existing value and selected risk O/P: able to change the value od the field
Step3: deselect the risk and selected other value O/p still I`m able to change the value which should not be the case.

please provide your inputs.

Thanks
Surender

0 votes

Comments

Sorry, all I can do at this time.

Did you configure the operational behavior/precondition?

 yes I do.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937

Question asked: Aug 06 '14, 4:54 a.m.

Question was seen: 6,130 times

Last updated: Aug 07 '14, 8:28 a.m.

Confirmation Cancel Confirm