2

In my User Event script I am adding a field to the form and I would like to add it to the Primary Information field group. What is the internal id of the group? I've tried primaryinformation but that's not correct. I can't see a method of iterating field groups and fields in the API to figure it out.

Does anyone know?

I am using SS2.

               var field = scriptContext.form.addField({
                        id: 'textfield',
                        type: serverWidget.FieldType.TEXT,
                        label: 'Text',
                        container: '**primaryinformation**' <--
                    });
ehcanadian
  • 1,738
  • 1
  • 15
  • 23
  • Hi Man, Did you find a solution for your question ? I'm looking into same issue. Please if you found something, please let me know. – Nadeem Khoury Jan 12 '19 at 15:52
  • @NadeemKhoury Sorry - I never found a solution and NS support wasn't any help either. It doesn't look possible. – ehcanadian Jan 14 '19 at 03:28

1 Answers1

1

From inspecting the DOM of the form, it looks like they are randomly generated identifiers in the form fieldGroupXX.

enter image description here

As an alternative, you could try using form.insertField(options) to place your field in the desired Field Group.

michoel
  • 3,725
  • 2
  • 16
  • 19