Forum Discussion
How to make a form field appear when a toggle button is turned on
Vdraper you will need to use a customized form with Power Apps for this.
1. In your SharePoint list click Integrate then Power Apps then Customize forms:
2. Power Apps will open with your form displayed. On the Insert menu select Toggle:
3. The toggle will be added. In the simple example below I've made the Department datacard bigger and dragged the toggle into an appropriate position. From the Advanced tab on the format panel I've also changed the False Text and True Text:
4. Select the field you want to make hidden or visible dependiing on the toggle value. In the property field at the top left above Tree View select Visible from the dropdown and in the formula field type If(Toggle1.Value=true,true,false)
Save and p[ublish your form back to SharePoint from the icons in the very top right of Power Apps and then go back to the list. If you make changes to your form you will probably find you need to refresh your screen several times to see the changes due to the caching that goes on. But when you open an item in the list, when you click the toggle the (in this case) the department field will be displayed; click the toggle again and it will be hidden.
Rob
Los Gallardos
Microsoft Power Automate Community Super User.
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)