Ok, by now you've built your first basic form from a SharePoint list, and this time we show you how you can add more value to it. This article follows on from the previous Build your first Nintex Form - Part 1 of 3.
You may have noticed that the travel request form we created in the first article does not contain an area for destinations. This is where a repeating section comes in handy.
The first step is to create some room on the form. To move and resize the controls on the form, select a control and use the yellow corners to resize the select the controls you want to move.
Your form should look something like this.
In the space you have created, drag a Repeating Section Control onto the canvas.
The next step is to add four Label controls on top of the repeating section. These are going to be the columns for each set of information. The four label controls should be titled; Country, City, Arrival Date and Departure Date.
To change the title of a Label control, double click on the control and type in the text box.
Once you have named all your Label controls, your form should look something like this.
Now it’s time to add the input controls within the actual repeating section control. Drag a Single line of text control onto the canvas, and sit it inside the Repeating section control below “Country”.
Now copy and paste this control below the next column; City. Your form should look similar to the image below.
We’re almost finished the repeating section!
The final two controls, are Date/Time. Drag a Date and Time control below the Arrival Date field, in the repeating section. Double click on the control and in the Date Only field, select Yes.
Copy the Date/Time control and paste below the Departure Date label. Your form should look something like this. You may have to rearrange the controls so everything fits.
Add formatting to the Repeating section, so the input controls are consistent with the other controls on the form. Click on the Start Date input control and then select the Format Painter in the Ribbon. The Format painter copies the formatting style from one control to another.
Click on the Repeating Section control and the formatting will be copied over.
Drag and drop a Label control on the top of the Repeating Section. Double –click on the action and call it Destinations.
Finally, double click on the Repeating Section control. In the control dialog, locate the Text for add row icon and type in “Add another destination”.
Now we’re ready to Preview.
Click on the Preview button in the Ribbon, and then Generate Preview. When you click on “Add another destination”, another section should open up and look like this.
Almost there, let's continue with the final article and add some simple validation and a hyperlink into your Travel Request form > Build your first Nintex Form - Part 3 of 3
Hi Emily, this is great. Is there a follow-up tutorial to show us how to work with the data collected in the repeating section? I understand it is all stored as XML in a multiline field. Are there any examples that you can provide that show us how to parse the XML?
e.g. for the example above send an email with a list of unique countries visited for a trip or for something even trickier, run some validation across all the line items to make sure the dates don't conflict between destinations.
Not exactly the same but this shows you how to use XML from unbound fields in forms, which could be a repeating section
I added a repeating section to my form but the form does not grow to accommodate added rows, so when the user adds a row, it overlays the Save button below the section. Can you help?
Hi Naeemeh, did you bind the repeating section control to the multivalue text field? If you do that, you should be able to see the XML and from there use the link that Dan posted above to parse.
Sorry Naeemeh, I was typing a little too quickly. I meant a multi-line text field. When you create a new column it is described as "Multiple lines of text". Create this column and make sure it is plain text only (it defaults to enhanced rich text). You can then bind your repeating section to that field/column.