0

We have a SharePoint list with an associated InfoPath form.

The form has multiple views based on different field values and rules e.g. view_item (all fields), new_item, edit_a, edit_b and edit_c.

How can I store the name of the view in a hidden text field in the form?

We are using SharePoint 2013 and InfoPath 2013.

Best regards Morten

0

Maybe I am not understanding your case but why not just add an field and hidden control to each view and enter the view name there manually? If you need it dynamically try using the XmlForm.CurrentView Property in default value function for the field.

  • Thank you, Marek Sarad. I found two existing fields which could define my views. – RegionH Jun 6 at 9:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.