Hi all, we use Service Catalog 12.8. We need to control content of text field in multiple forms via script. For example when user write some text to text field1 in form1 we need to copy value of field1 to form2 to field1.
I tried to use javascript function in script created directly in form1:
OnChange: ca_fd.js.x()
{
x: function() {
var m = ca_fdGetTextFieldValue('form1', 'field1');
ca_fdSetTextFieldValue('form1', 'field2', m); // works
ca_fdSetTextFieldValue('form2', 'field1', m); // doen't work
}
}
and I also tried to call function in custom_form_lib.js
OnChange: | x(ca_fdGetTextFieldValue('form1', 'field1')) |
function x(param1) {
ca_fdSetTextFieldValue('form1','field2',param1); // works
ca_fdSetTextFieldValue('form2','field1',param1); // doen't work
}
but without success in the both cases . It works only inside the form from which is the script called. I'm sure that this works in Service Catalog 12.5 in case that the both forms form1 and form2 were inside the same Service Option Group.
Did I make some mistake or this functionality was removed from newer versions of Service Catalog?
Regards,
Mila