Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Syndicate_Admin
Administrator
Administrator

Create a Set(varFormMode,Edit/View/New)

@Reza Dorrani

Good day I am trying to create a Set(varFormMode,Edit/View/New) on the Edit, View and New button icons, however, when I change the property default mode of the form to the variable that has been created, it does not apply the action, instead, the property states that it expects an enum Value.

 

Please refer to the below Screenshots:

 

zmneno_0-1630999743985.png

 

zmneno_1-1630999812411.png

 

zmneno_2-1631000134058.png

 

Your Swift Response will be highly appreciated.

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Syndicate_Admin ,

The formula should be Set(varFormmode,FormMode.Edit)  instead of Set(varFormmode,Edit)

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yingjl
Community Support
Community Support

Hi @Syndicate_Admin ,

The formula should be Set(varFormmode,FormMode.Edit)  instead of Set(varFormmode,Edit)

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors