Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Subform Initial Occurence resets when occurence is zero

Avatar

Avatar
Validate 10
Level 4
jnicholas330
Level 4

Likes

21 likes

Total Posts

325 posts

Correct Reply

31 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 4
jnicholas330
Level 4

Likes

21 likes

Total Posts

325 posts

Correct Reply

31 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
jnicholas330
Level 4

03-07-2016

I have a subform whose initial count is one. I can add more, save and they reappear as expected. However, if the form filler decides to remove all the subforms, when the form is reopened, the subform instance reappears set to the initial count. I want to allow the user to remove all the subform instances if they don't have applicable data, and for the choice to be remembered. How do I do this?

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_Bruce_Robertson
MVP

06-07-2016

Hi,

I've never noticed this behaviour before but then have always had a yes/no choice wrapping around the repeat.  I guess you could have a hidden field with the count and use that to set the instances when initialising the form?

Bruce

Avatar

Avatar
Validate 1
Level 2
natalies3171885
Level 2

Likes

4 likes

Total Posts

38 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Validate 1
Level 2
natalies3171885
Level 2

Likes

4 likes

Total Posts

38 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
natalies3171885
Level 2

04-07-2016

So the user is saving their own copy of the form after they've removed all subforms, then reopening their copy and using it as a new form? Or just making edits to what they've already filled out?

I'm not sure if it's possilbe, but my though would be to have an additional button to 'remove all future instances' (or whatever you want to call it), and have a click event scripted to change the initial count of that subform to 0. I'm no good at scripting, so no idea how you'd write that.