If there are no entries in the subform - to hide the subform

Questions related to customising nuBuilder Forte with Javascript or PHP.

If there are no entries in the subform - to hide the subform

Postby kknm » Fri May 22, 2020 11:45 pm

If there are no entries in the subform - how to hide the subform ?
kknm
 
Posts: 102
Joined: Sat Apr 11, 2020 7:33 am

Re: If there are no entries in the subform - to hide the sub

Postby kev1n » Fri May 22, 2020 11:55 pm

Code: Select all
var subformId = 'accform'; // <--- replace with your subform object ID
if (nuSubformObject(subformId).rows.length < 2) {
  nuHide(subformId);
}
kev1n
 
Posts: 728
Joined: Mon Oct 15, 2018 2:13 am

Re: If there are no entries in the subform - to hide the sub

Postby kev1n » Sun May 24, 2020 10:26 am

Please let me know if the code works for you.
kev1n
 
Posts: 728
Joined: Mon Oct 15, 2018 2:13 am


Return to Custom Code