5110https://www.ibm.com/developerworks/community/forums/atom/replies?topicUuid=77777777-0000-0000-0000-000014924443want to set a textfield mandatory through hook while selecting radio fields Replies2013-01-09T16:55:11.784ZIBM Connections - Discussion Forumurn:lsid:ibm.com:forum:77777777-0000-0000-0000-000014927152Re: want to set a textfield mandatory through hook while selecting radio fields2013-01-09T16:55:11.784ZLumart120000GQG6active2013-01-09T16:55:11.784Z
This is a well known limitation of CQ web.<br />
Fields dependency (i.e. a change to the value of field A triggers a change to the value, or the requiredness, of field B) works only if field A and field B are associated to any of the following form controls:<br />
<br />
<b>Drop-down list box</b><br />
<b>Combo box</b><br />
<b>Drop-down combo box</b><br />
<br />
(see https://publib.boulder.ibm.com/infocenter/cqhelp/v7r1m0/index.jsp?topic=/com.ibm.rational.clearquest.schema.ec.doc/topics/t_enable_dependent_fields.htm)<br />
So, radio buttons cannot work for your purpose.<br />
Try substituting them with a drop-down list box.
none, view_forum, view_categoryurn:lsid:ibm.com:forum:77777777-0000-0000-0000-000014927007Re: want to set a textfield mandatory through hook while selecting radio fields2013-01-09T13:47:38.339ZSystemAdmin110000D4XKactive2013-01-09T13:47:38.339Z
Thanks for the post.<br />
<br />
i have used SetFieldRequirednessForCurrentAction API call and it worked too for the above requirement.<br />
<br />
But it is only working for native client,with web client i am getting issue(other field not becoming optional while selecting radio),same is working fine with native client.<br />
<br />
Is this web client specific issue or some issue in my code?<br />
<br />
thanks,<br />
Prashant
none, view_forum, view_categoryurn:lsid:ibm.com:forum:77777777-0000-0000-0000-000014924978Re: want to set a textfield mandatory through hook while selecting radio fields2013-01-03T15:16:57.733Zpdubovitsky100000N35Yactive2013-01-03T15:16:57.733Z
I am not sure what did you mean. You cannot make radio button selection on the form and/or change field requiredness to mandatory unless you initiated some action to make entity editable.<br />
<br />
Pavel
none, view_forum, view_categoryurn:lsid:ibm.com:forum:77777777-0000-0000-0000-000014924772Re: want to set a textfield mandatory through hook while selecting radio fields2013-01-03T07:27:35.091ZSystemAdmin110000D4XKactive2013-01-03T07:27:35.091Z
Hi,<br />
<br />
Thanks for the reply.<br />
<br />
but my requirement is like on selection of any radio options in form,other text field should become mandatory,<br />
Its not happening on any action,simply selection of radio button options<br />
<br />
thanks,<br />
Prashant
none, view_forum, view_categoryurn:lsid:ibm.com:forum:77777777-0000-0000-0000-000014924455Re: want to set a textfield mandatory through hook while selecting radio fields2013-01-02T14:31:09.933Zpdubovitsky100000N35Yactive2013-01-02T14:31:09.933Z
You can use SetFieldRequirednessForCurrentAction API call.<br />
<br />
Pavel
none, view_forum, view_category