Sunday, October 7, 2012

Why are InfoPath rules not triggering?

Customizing InfoPath at one of my client bought me to a challenge. Now, though challenge sounds a biggie, it wasn't really the case. In a moment, you'll know why!

I wanted to populate few text fields on the selection of a Dropdown list. I created a web service and connected it to InfoPath via InfoPath data connections. This would fetch data based on the dropdown selection and populate the fields.

But it wasn't the case. The fields weren't being populated!

I published and checked the web service separately and it was returning perfect as expected. I repeatedly checked the InfoPath form rules and they were fine too.

Now, if you are new to InfoPath customization (like I am), you should be convinced that you are missing something somewhere.

Looking around I navigated to the Dropdown list properties > Browser Forms > Postback Settings. This was set to Never. I changed it to On Demand and .......

Ah ha!

Biggie? I told you, you'll know why not :)

No comments:

Post a Comment