Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Weird saving issue with subforms

Avatar

Level 4

I have a strange issue going on when a form is saved.

If you open this form:

https://acrobat.com/#d=CyR7W1v3MGBCkNI*QCCRkw

...and enter data into the "Hotel Reward Accounts" section, save the form, then reopen it, the data entered now shows up in the "Frequent Flyer Account" section. I've gone through this with a fine-toothed comb and cannot figure out what is causing this. Can someone take a look at it and see what I'm missing?

Thanks so much!

Jo

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Did you copy-and-paste the hotel name and account number from the airline name and account number?

The bindings are duplicated.

bene_FirstName  $record.beneficiaries.beneficiary[*].bene_FirstName

bene_LastName  $record.beneficiaries.beneficiary[*].bene_LastName

HotelName          $record.beneficiaries.beneficiary[*].bene_FirstName

HotelAccNum      $record.beneficiaries.beneficiary[*].bene_LastName

I changed the attached so HotelName and HotelAccNum use name for binding.

Steve

View solution in original post

2 Replies

Avatar

Correct answer by
Former Community Member

Did you copy-and-paste the hotel name and account number from the airline name and account number?

The bindings are duplicated.

bene_FirstName  $record.beneficiaries.beneficiary[*].bene_FirstName

bene_LastName  $record.beneficiaries.beneficiary[*].bene_LastName

HotelName          $record.beneficiaries.beneficiary[*].bene_FirstName

HotelAccNum      $record.beneficiaries.beneficiary[*].bene_LastName

I changed the attached so HotelName and HotelAccNum use name for binding.

Steve

Avatar

Level 4

That is EXACTLY what I did. I'm using examples from other forms to put together new forms as I'm learning, and I had used a subform from a life insurance policy form (which explains the "beneficiaries" bindings). I copied both my flight info and hotel info from the same subform, which apparently had a binding attached that I wasn't aware of.

Thanks so much for figuring that out for me!

Jo

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] ----