I am building an app with powerapps and I have the following problem. I have a dropdownlist that tells me the registration status (NEW, MODIFIED, FINISHED)
By default if it is a new form, the State = "NEW" but if it is modification of that registry, the State = "MODIFIED"
I am using the following code but it does not work for me:
If(FormModeVar = 1;
If you want to show the form's status, you don't need to set one variable.
Form.Mode is already one variable.
You just set the dropdown's items as this:
Hi @dvalenzuela ,
Here is how I would tackle this:
["NEW", "MODIFIED", "FINISHED"]
If( frmMyForm.Mode = FormMode.New, "NEW", frmMyForm.Mode = FormMode.Edit, "MODIFIED"
Hope this helps!
Hi seadude, thanks for your help
I try with this:
EditForm1.Mode = FormMode.New;
EditForm1.Mode = FormMode.Edit;
but I have an error: "a record value was expected"
My data is in sharepoint online, with a colum called "Estado", if the register is new the status is "NEW", but if If I'm modifying that register, the status will be "MODIFIED"
your drowdown has 2 main settings, the datasource (items) and the default
the calculation you mentioned should be under default
the datasource can be something like ["new";"Modified";" Done" ]
Find your favorite faces from the community presenting at the Power Platform Community Conference!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.
Features releasing from October 2020 through March 2021