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.

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

Avatar

Former Community Member
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