how to remove "null" from a repeating subform value? | Community
Skip to main content
New Participant
January 18, 2023
Solved

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

  • January 18, 2023
  • 1 reply
  • 535 views

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";
}

 

 

 

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 @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

1 reply

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

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