How to hide a Overall Discount(%) Row in adobe forms | Community
Skip to main content
New Participant
January 6, 2023
Solved

How to hide a Overall Discount(%) Row in adobe forms

  • January 6, 2023
  • 1 reply
  • 659 views

Hi Experts,

I need to hide a row in adobe forms. If the Overall Discount(%) value in sales order is not present then the row will hide.

var Disc = xfa.resolveNodes("xfa.record.FormPurchaseOrder.PriceAndTax.PriceComponent[*]").length;

for (var i=0; i<=Disc; i++) {
var TypeWord = xfa.resolveNode("xfa.record.FormPurchaseOrder.PriceAndTax.PriceComponent["+ i +"].Description").value;

if(TypeWord == "Overall Discount (%)"){
this.rawValue = xfa.resolveNode("xfa.record.FormPurchaseOrder.PriceAndTax.PriceComponent["+ i +"].CalculatedAmount").value;
}
else 
{
Design.tablesf.Table2.Row3.presence = "hidden";

}

}

Now the Discount value present in sales order also hide the Row.

Experts Please help.

Regards,

Sai

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by nitesh_kumar-1

Hi @sai9 ,

 

As it's related to AEM Forms, For better answers please post this question to the AEM Forms community. 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-forms/ct-p/adobe-experienc... 

 

Regards,

Nitesh

1 reply

nitesh_kumar-1
nitesh_kumar-1Accepted solution
Employee
January 6, 2023

Hi @sai9 ,

 

As it's related to AEM Forms, For better answers please post this question to the AEM Forms community. 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-forms/ct-p/adobe-experienc... 

 

Regards,

Nitesh

Sai9Author
New Participant
January 9, 2023

Hi,

Thanks for your Reply.