Dynamic labels - InfoPath Dev
in

InfoPath Dev

Dynamic labels

Last post 11-20-2008 04:46 AM by chandrakanth. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-01-2008 07:00 AM

    Dynamic labels

    I am creating a form containing between 8 and 12 questions, the number of questions and the specfic question depends on the users role in the organization, i.e, the managers see 12 questions and the engineers see 10 questions. Some of the questions are the same for each role and others are role specific. All of the questions have the same choice list of valid answers. My initial idea is to create different static views for each role, but I was wondering if I should try to do something more dynamic. I was wondering if is possible to display different text for each role dynamically. any thoughts or suggestions on this would be appreciated.

     

    Dean

    Dean
    Charlotte, NC
  • 10-01-2008 10:47 PM In reply to

    Hi,

    By using expression box and some conditional formatting you can solve your problem.

    For example, if you have want to show ‘text1’ for manager and ‘text2’ for ‘engineer’ role.

    Add two expression box with the above text. And put the conditional formatting for first expression box as User’s current role != manager then hide the control.

    In the same way put the conditional formatting for second expression box as User’s current role != ‘engineer’ then hide the control.

    Hope this will be useful to you.

       

     

    Swathip
    www.ggktech.com
  • 11-19-2008 02:59 PM In reply to

     Please let me know how to get the user role of current user. I would like to get the user role with or without code. either way is okay for me. Thanks.

  • 11-20-2008 04:46 AM In reply to

    Hi,

    In code use the below statement for getting the user's current role.

    string role = thisXDocument.Role;

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