Hide optional section via code (jscript od vbscript)

E

eli

Thanks, but the conditional formatting is not good for my task.

In the form I have a buttton that automatically send the form via email.
Before sending the email, I need to automatically hide the optional section.

Thank You,
Eli
 
E

eli

This is exactly what I ask:
What is the code that hide the optional section?
Can you please send me the code sample that hide the optional section?

Thank You,
Eli

Greg Collins said:
Change your button to use code instead. Then in your code you can hide the section, and then submit the email.

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



Thanks, but the conditional formatting is not good for my task.

In the form I have a buttton that automatically send the form via email.
Before sending the email, I need to automatically hide the optional section.

Thank You,
Eli

Greg Collins said:
Use xdExtension:MyFunctionName() as your conditonal formatting condition. Set the action to hide.

Then in your code, the function MyFunctionName() returns a boolean value. True = hide, False = show.

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



Hi,

How do I hide optional section via Jscript or VBScript?

Thank You,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top