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" ]
Keep your eyes open for our upcoming T-shirt design contest!
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020