官术网_书友最值得收藏!

Customizing forms

As well as creating fully functioning apps based on SharePoint data, PowerApps can also be used to customize specific list form experiences such as being able to create a customized new form or a customized edit form. This is so that you can build much more functionality into the form itself, for example, showing and hiding specific fields based on an input elsewhere.

Consider using this if you want to add more styling to your SharePoint list form as you will be able to use icons and geometric shapes to add more character to your form.

To create our customized list form, we will start in the same way as we did previously:

  1. Simply navigate to your list with SharePoint using a browser.
  2. On the list actions running across the top of the list, click on the drop-down menu titled PowerApps; however, this time, select Customize forms, as seen in Figure 3.9: The PowerApps menu showing the Customize forms option.
  3. If you can't see this menu, then it is likely that you have a list item selected, indicated by a tick against a row.
  4. Simply deselect that list item, and the list menu will return:
Figure 3.9: The PowerApps menu showing the Customize forms option
  1. Again, PowerApps Studio will launch in a new tab so that you can customize the app; however, there are some key differences. Firstly, you will notice that there is a navigation link above the normal menu allowing you to navigate Back to SharePoint. This will close the app for you and return you to your list.
  1. Secondly, below the usual app object under screens, there is now an additional item called SharePointIntegration, as illustrated in Figure 3.10: The SharePointIntegration properties. Notice that there are also multiple events that you can build functionality around, such as OnView, OnSave, OnCancel, and more:
Figure 3.10: The SharePointIntegration properties
SharePointIntegration is designed to set the global SharePoint settings for this particular app, in a similar way that app allows global settings for the app as a whole. This option will only appear when customizing a form from SharePoint; it won't appear if you are simply using SharePoint as a data source like we did earlier in this chapter when we created the auto-generated app.

Now that we have looked at how we can create the customized form, we need to modify the form to make it bespoke to our needs.

主站蜘蛛池模板: 绥德县| 吉木乃县| 临颍县| 兴义市| 封丘县| 张家口市| 固始县| 板桥市| 仪陇县| 滨海县| 武宣县| 太仆寺旗| 从化市| 大同县| 长宁区| 尉氏县| 文昌市| 图木舒克市| 永昌县| 阿拉善右旗| 钟祥市| 娄底市| 神木县| 甘德县| 通化市| 靖边县| 酉阳| 克山县| 武义县| 金坛市| 南平市| 将乐县| 清水河县| 安庆市| 云梦县| 泰来县| 兴海县| 广饶县| 张北县| 镇雄县| 文昌市|