Expand my Community achievements bar.

SOLVED

Hidden repeating subform within repeating subform

Avatar

Level 2

I have a hidden repeating subform (Subform2) nested within a repeating subform (Subform1). 

I have set Subform2 as Presence Hidden. I have a radio button in Subform1 that makes Subform2 visible (which works fine).  When I try to add a second instance of Subform2 it does not appear.

I have tested the exact same form except that I set Subform2 Presence Visible.  When I test this form I can add and delete as many instances that I want.

Anyone have a clue on what I am missing?

Thanks for your help

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Finally I could make it work......I do not remember all the code changes I made so here is the updated template. But I am running on Designer 8 noticed you are running on 8.2, I do not know what else get effected. But you can compare them side by side and transfer changes from my copy. Hopefully not too much of pain.....:)

Good Luck,

View solution in original post

4 Replies

Avatar

Former Community Member

I suspect you need to set "Auto-fit" option for Subform height so it can expand....Also I would use "xfa.layout.relayou()" at the end of the code execution that adds new subform in side other. Which will force screen to repaint with all visible items at that time.

If that do not work attach your template sample I will try to fix it.

Avatar

Level 2

Auto fit is on.  xfa.layout.relayout()  did not solve the problem either.

Here is the form.  The Subform that is having the problem is labeled DataSet.

If it is initially set to hidden the Subform DataSet will not repeat.

If it is initially set to visible the Subform DataSet works the way I want it to.

Thanks for your assistance.

Carol

Avatar

Correct answer by
Former Community Member

Finally I could make it work......I do not remember all the code changes I made so here is the updated template. But I am running on Designer 8 noticed you are running on 8.2, I do not know what else get effected. But you can compare them side by side and transfer changes from my copy. Hopefully not too much of pain.....:)

Good Luck,

Avatar

Level 2

Wow!  It works.  I would not have been able to do this on my own.

Thanks

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----