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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors