Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

beginers calculate question

Avatar

Level 3

Two Forms:

In form1 certain text fields have numeric values (costs)

In form 2 I would like to calculate the sum of the costs in form1 and produce an invoice.

How do I reference the form1 fields to calculate the sum in form2?

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Are these two forms open at the same time? You can have two forms communicate with each other but they must both be open at the same time. It is complicated and unless you are code savvy I woudl not go down that path.

It might make more sense to calculate the costs in Form1 and export the data from form 1 then import that data into form2. Then you will have the data locally in form2 and you can do what you want with it.

Paul

View solution in original post

2 Replies

Avatar

Correct answer by
Former Community Member

Are these two forms open at the same time? You can have two forms communicate with each other but they must both be open at the same time. It is complicated and unless you are code savvy I woudl not go down that path.

It might make more sense to calculate the costs in Form1 and export the data from form 1 then import that data into form2. Then you will have the data locally in form2 and you can do what you want with it.

Paul

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