Expand my Community achievements bar.

SOLVED

how to remove "null" from a repeating subform value?

Avatar

Level 2

I have a repeating subform (Post) that has a text field (txtNotes) and I am trying to remove the 'null' value, how do I achieve that?

 

nTotal = 0;

for (var i = 0; i < _Post.count; i++)
{
var oItem = Page1.resolveNode("Post[" + i + "]");

nTotal += oItem.Staff.txtNotes.rawValue + "\n";
}

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi @wilsonl28824783 ,

 

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

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Hi @wilsonl28824783 ,

 

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