IRM Settings in Web-based forms (impossible, but not?) - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

IRM Settings in Web-based forms (impossible, but not?)

Last post 04-09-2018 09:16 AM by jh1234. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-09-2018 08:22 AM

    • jh1234
    • Not Ranked
    • Joined on 04-06-2018
    • Posts 2

    IRM Settings in Web-based forms (impossible, but not?)

    Hi, Problem: I need to make a form such that it becomes read-only once it's offline. i.e. everyone can open in Infopath and print, but not change or save locally. Only a select group would be able to open/edit save. So it clearly states on ( https://msdn.microsoft.com/en-us/library/office/aa944110.aspx ) that Browser-compatible form templates do not support IRM. But, I'm tantalized by the code template, which says: // Member variables are not supported in browser-enabled forms. // Instead, write and read these values from the FormState // dictionary using code such as the following: // // private object _memberVariable // { // get // { // return FormState["_memberVariable"]; // } // set // { // FormState["_memberVariable"] = value; // } // } Does this mean I can technically do IRM with the UserPermissionCollection Class? I'd need a code example on how to do this from the FormState, if it's possible. something like the example at the bottom of that website that I've mashed in here with obviously incorrect syntax: set{ FormState["_Permission.UserPermissions.Add("someone@example.com", _ PermissionType.Change, dtExpirationDate)"]; } Using Infopath 2013 designer ; the code editor opens in Visual Studio 2012, (Microsoft Visual C# 2012) Thank you.
  • 04-09-2018 09:04 AM In reply to

    Re: IRM Settings in Web-based forms (impossible, but not?)

    So - a web based form can never be offline. I don't understand why you would not just change your form's compatibility to filler, since you seem to intend to use filler forms?
    Hilary Stoupa

  • 04-09-2018 09:16 AM In reply to

    • jh1234
    • Not Ranked
    • Joined on 04-06-2018
    • Posts 2

    Re: IRM Settings in Web-based forms (impossible, but not?)

    Point well taken; just some users have infopath installed and others don't, so the web-based was intended to cover all cases/versioning.
Page 1 of 1 (3 items)
Copyright © 2003-2018 Qdabra Software. All rights reserved.
View our Terms of Use.