2 Replies Latest reply on May 4, 2017 1:45 PM by James R Green

    Prepopulate values in multifield

    rk39193348 Level 1

       Hi,

      I have a scenario where I need to prepopulate values inside multifield. How to achieve this? Please help?

        • 1. Re: Prepopulate values in multifield
          rk39193348 Level 1

          rk39193348 wrote...

           Hi,

          I have a scenario where I need to prepopulate values inside multifield. How to achieve this? Please help?

           

          Also I need the values entered inside my multifield to stay in dialog. How to achieve this?

          My dialog contains 9 text field and 1 dropdown field inside multifield. The values should be prepopulated inside the dialog

          • 2. Re: Prepopulate values in multifield
            James R Green Level 1

            Hi,

            Do you mean the "Drop-down List" Adaptive Form component with Allow multiple selection checked?

            If so, you can just configure with the spanner and add options under the items property.

            Or you can add them with javascript using the Rules editor (hammer tool) and populate with code similar to this:

             
                
                var testValues = ["1", "2", "3"]; this.items = testValues;