Consider we have form containing self scripted fragments. Is it possible to change the event scripts of the fragments at run time from the main form?
I tried to use
...event__initialize.script.value = ` `
but it did not work.
Basically, I have a fragment with radio button exclusion group. And this radio button has a default value (we have 3 values) set by script.
I want to remove default value setting without touching the fragment code from the main form.
Actually, this was not such a good example for my problem, because I can set it to null in the form:ready event:
this.RadioButtonGroup.Option3.rawValue = null;
In essence, what I need is accessing the event scripts on the objects, subforms.
You woudl have to modfiy the xdp source of the fragment (it is only XML) before the fragmen reference is resolved in your main line form.
Once it is rendered you will not be able to modfiy the script.