How to hide a Overall Discount(%) Row in adobe forms | Community
Skip to main content
Level 2
Jan 6, 2023 12:16 PM UTC
Solved

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

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.
nitesh_kumar-1
nitesh_kumar-1Accepted solution
Employee
Jan 6, 2023 1:19 PM UTC

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

2 replies

nitesh_kumar-1
nitesh_kumar-1Accepted solution
Employee
Jan 6, 2023 1:19 PM UTC

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

Translate
Sai9Author
Level 2
Jan 9, 2023 4:43 AM UTC

Hi,

Thanks for your Reply.

Translate