Set infopath form permissions in infopath Forms Services

Source: Internet
Author: User
When using infopath, users who need to set different permissions can only perform operations on specific controls. They want to use infopath user roles, but infopath Forms Services does not support this function, in addition, infopath does not recommend this, so other methods are used for implementation. My method is very common and creative.

1. Add several controls to the form: text box txtname, button: btnok, text to be controlled: txtcontent, for example:

2. open the data source view and add an isvisible attribute to control the display of text. Enter isvisible in the name and select "select domain (attribute)" as the type. You can select "Domain (element )", however, I feel better when using attributes. The data type is boolean. The default value is false:

3. Right-click txtcontent and select the condition format:

Add a condition format for the control, such:

4. Then click the btnok eventCodeTo control the attribute values based on the required conditions:

5. You can preview the form.
Enter a random value:

Enter "Pipi ":

Click here to download the demo project

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.