Formatting rule (hide) applied on section according to user - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Formatting rule (hide) applied on section according to user

Last post 01-24-2017 07:34 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-24-2017 01:34 AM

    Formatting rule (hide) applied on section according to user

    I want to keep my form simple and set a formatting rule (hide) on a section with 3 fields that should not be visible to the average inputter (everyone) except 2 users. I am working on Sharepoint online

     

    My rule is Hide section

    When I am about to create the condition I do not know what to place (I was successful by doubleclicking pc:Person)

    Created By

          pc:Person

                 DisplayName

                 AccountID

                 AccountType

     

     and the subsequent expression

     Person does not contain 'lastname'

     

    However, I am not sure if I need to type name lastname or name.lastname

    Filed under:
  • 01-24-2017 07:34 AM In reply to

    Re: Formatting rule (hide) applied on section according to user

     I think you need to use DisplayName. Does CreatedBy get populated when the form opens? Or on submit? Maybe drag the display name field onto the form and preview to see. You could also just use the userName function - and compare that to the current user.

    Hilary Stoupa

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.