Solved

Repeating section default values

  • 27 November 2017
  • 5 replies
  • 15 views

Badge +5

Hello,

 

I've created a form for logging work hours where people enter the time they've spent on various tasks. It uses a repeating section - they create a new instance for each day.

 

The fields are all decimal and have a default value of 0.

 

When you create a new instance of the form this is all fine - each instance of the fields has them all set to 0 until the user replaces that with another value. However if you save and close the form and then return to add another instance of the repeating section all the fields on the new section are empty - they don't have the 0 in them.

Is there a way to make the fields contain 0?

icon

Best answer by cdsommerfield 30 November 2017, 17:16

View original

5 replies

Userlevel 3
Badge +12

Hi,

What is meant by "if you save and close the form and then return to add another instance of the repeating section all the fields on the new section are empty - they don't have the 0 in them" ? Is the user adding new row by clicking "Add Row" ? Also please share screenshot if possible.

Thanks,

Krishna.

Badge +5

Hi Krishna,

So, if you create a new form, you can click on the "Add row" button and all the fields in the repeating section appear with a default values of 0, which is what I want them to do.

However if I save a form, then go back later to edit it, when I click "Add row" (or in my case "Add new day") the fields in the repeating section appear, but they are all empty. I would like them all to have 0 in them as per the default values I set up. I've done a couple of screen shots to show what I mean.

Here's what happens when I add a new row in a new document:

All values set to 0 in new instance of section

Here's what happens when I add a new row to an existing document that I've put into edit mode:

All values blank in new instance of the section

Thanks,

Alice.

Badge +9

Hey Alice,

Since the form is submitted, it technically doesn't have a default value anymore. The new rows become Null. Try adding a 0 to the Null display text in the Control Settings.

Badge +5

Thank you Chadd, that works perfectly.

Alice

Badge +9

No problem! Glad it worked. Mark my reply as correct when you get a chance!

Reply