cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically hide page in subform

viralkumar_patel
Explorer
0 Kudos

Hello Experts,

I want to dynamically hide/unhide subform created in my application, I think I can achieve it by using scripting, how do I achieve that through scripting?

Dynamically I want to check no of records presents in the context node and hide the subform if no record is found.

Any valuable inputs?

Thanks & Regards,

Viral

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Viral,

hiding elements is quite easy using JavaScript in the form. Please have a quick look to the following snippet:

if (this.rawValue == 1)

{

this.resolveNode("detailsForm").presence = "visible";

}

else

{

this.resolveNode("detailsForm").presence = "hidden";

}

Best Regards,

Thomas

Former Member
0 Kudos

when you launch LCD, you can access the Help which outlines scripting.

it's very easy to hide a field/subform using the presence = "hidden" property