Automatically Insert Optional Section based on Field Value

S

Shakeel

I'm new to Infopath, trying to create a form, I want to automatically insert
optional section when user response to yes in a field rather than choosing to
insert. Is it possible? Thanks for helping.
 
A

Alex [MSFT]

Yes, this is most definitely possible, but requires some simple coding.
Create an onAfterChange event handler on the field where a user can type
"yes". In the handler, check the value of that field (make sure it's "yes")
and insert an optional section (using XDocument.View.ExecuteAction()). Good
luck.
 

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