cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
gmaasz
Level: Powered On

Change default display of form using variable

I have an 'Edit' form with DefaultMode set to 'View', which I want to change to 'Edit' by clicking a button. I tried to use a variable and set the variable to Displaymode.View and DisplayMode.Edit when clicked, but it gives to following error:

 

The property expects Enum values, but this rule produces incompatible Text Values.

1 ACCEPTED SOLUTION

Accepted Solutions
gmaasz
Level: Powered On

Re: Change default display of form using variable

So I went and used the FormMode function instead of the Displaymode function and set it with a variable.

2 REPLIES 2
Super User
Super User

Re: Change default display of form using variable

@gmaasz 

 

You could simply use the EditForm function to put your form into Edit mode. 

On the OnSelect of your button, place this formula:  EditForm(yourFormName)

 

I hope that is helpful for you.

gmaasz
Level: Powered On

Re: Change default display of form using variable

So I went and used the FormMode function instead of the Displaymode function and set it with a variable.