1
0
-1

Hi

I am trying to copy value of Type of CMR from the main form into the subform. Suppose the user select "Deliver - Import Empty" as the type, the value of "Type of CMR" under the subform should automatically be selected is equal to the type in the main form.

Note: User do not have to select the type of CMR in the subform.


How can this be achieve? thank you in advance.

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Use AJAX Subform, then follow the steps in "Getting Started"

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi, I do not have the exact code to do it, but you should be able to use some custom JavaScript to do it. You could listen for a change (https://api.jquery.com/change/) in the source field and update the target field accordingly. Use the Javascript API#getField(fieldId) to get a reference to the the fields in your form.

          CommentAdd your comment...