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

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

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

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