I am using an array widget on web interface.There are different columns from which I am setting values for column1 based on the collection and there is one more column which is radio button list which holds default value as NO.I want to have functionality like for one specific item from column1 radio value in column2 should be YES and for other items it should be NO. I have written javascript in array which listens to the variable of column1 using index of an array and depending on item it sets radio button value to either YES or NO, but it always set default value as NO only.
Please find the script below =>
var current_item=id_auto_array.id_various_informations[P_index].getValue();
if(current_item=="Mailing list")
{
id_auto_array.id_requirement[P_index].setSelectedValue("YES");
}
For the script listen to variable is => auto_array.various_informations[P_index].
And I have another script which sets the values of various_informations in array from the collection.
I am not getting what is the exact issue. Will you please help me to sort out this issue?
Thanks & Regards,
Priyanka
Column1 is the text widget in an array widget and it gets set from the collection.I am applying queries on the collection and setting column1 values based on result from collection.As it is the text widget I can only use getValue() not getSelectedValue().Going further,I have added listen to variable of column1 with index for javascript widget in an array which sets YES in radio list for specific item.But it is showing always NO as default value that I have set for radio list.I am not able to understand why it is showing NO there.
Thanks & Regards,
Priyanka
Please find attachments for the screenshot of configuration details.
(Note- the attachment with name 'script written to set various information value from collection' is the script written outside of the array widget)
Thanks & Regards,
Priyanka
Any updates regarding the issue?
Thanks & Regards,
Priyanka