Hi there
Just wondering if anyone knows if it is possible to write an expression or formula to detect the current view of an InfoPath form, without running code behind?
I have built an infopath form that has three views, Writable, Read Only and Print Views. In the form is a Read Only flag in the schema and we use this control if the form is Read Only or Writeable. We have added a Rule when the form is opened to switch the view to the ReadOnly view when ever the Read Only flag is set. However this has the side effect that when the Print Preview button is clicked in Form Services the Form Load rules execute and if the Read Only flag is set it displays the Read Only view, not the Print View.
The form load rule is basically "If ReadOnly = 1 then Switch View to ReadOnly" so I think I need to get rid of that rule or be able to detect that the form is trying to print.
Does anyone have any suggestions on how to resolve this issue?
Cheers
Alan