I have a Main form named "frmItem", where inside it i have a Data-card which contain 3 input fields and a gallery as follow (to represents a Parent / child relation):-


now on the Onsuccess of the main form i want to set the SID value of the subform to be equal the main form item ID.. the Onsuccess code for the main form is shown above .. but currently when the value got saved to sharepoint it will show null (the SID will be null).. any idea?