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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

If statement to put "Yes" or "No" in a table cell on another page

Avatar

Not applicable
Hello I have tried to find a solution to this and I just can't figure it out. I have gone through all of the messages and tried the examples and no go. Please help, thanks.



THIS IS WHERE THE RADIO BUTTON IS:

----- form1.BorrowerInput.OtherPaymentsGroup.CurrentlyListed::calculate: - (FormCalc, client) ------



----- form1.BorrowerInput.OtherPaymentsGroup.CurrentlyListed.Yes::calculate: - (FormCalc, client) --



----- form1.BorrowerInput.OtherPaymentsGroup.CurrentlyListed.No::calculate: - (FormCalc, client) ---



THIS IS WHERE THE TEXT FIELD IN THE TABLE ON ANOTHER PAGE IS LOCATED

----- form1.#subform[5].Table1.Row3.ListedYesNo::calculate: - (FormCalc, client) -------------------



I am using the following if statemnet:

if (this.rawValue == 1) then

form1.#subform[5].Table1.Row3.ListedYesNo.rawValue = "Yes";



elseif (this.rawValue == 2) then

form1.#subform[5].Table1.Row3.ListedYesNo.rawValue = "No";



endif



When I put it in:

----- form1.BorrowerInput.OtherPaymentsGroup.CurrentlyListed::calculate: - (FormCalc, client) ------



I get the following error when I click the button:

"You are not allowed to modify this field"



I am totally lost on this, where would the script go or is it even right? Thanks for the help.
0 Replies