Skip to main content
Level 2
January 18, 2023
Beantwortet

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

  • January 18, 2023
  • 1 Antwort
  • 557 Ansichten

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

 

 

 

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von 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 Antwort

nitesh_kumar-1
Adobe Employee
Adobe 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