Greetings,
Iโve created an app with Refs and a dependent dropdown list (fields โImobiliรกriaโ e โCorretorโ) - the field โCorretorโ shows a list of employees depending on the chosen โImobiliรกriaโ. The problem is that those two fields were configured to be โRequiredโ but my employees have been able to save the form without filling those two fields.
Iโve tried to create many โRequired_Ifโ and โValid_Ifโ formulas as well, but still no successโฆ
Is there something that Iโm missing?
Thanks in advance.
This might happen if the required field is not shown - because AppSheet only enforces the required nature of a column when itโs shown.
There are a couple of solutions, but my favorite is the following:
IFS(AND(
ISNOTBLANK([Column1]),
ISNOTBLANK([Column2]),
ISBLANK([Column3])
),
โMake sure you fill all the fieldsโ)
I would actually go into much more detail, providing exact instructions on why the field isnโt working - but you get the drift I hope.
You can then apply a valid if formula to your new โalertโ column:
isblank([_this])
where if that column has any value, it will not let the user save - but as long as itโs blank (which means that all criteria and things are as they should be), then a user wouldnโt even know it was there.
First of all, thanks for your response!
This might happen if the required field is not shown - because AppSheet only enforces the required nature of a column when itโs shown.
I did some testing and thatโs exactly the problem!
Apply the require formula on a different field, one that will always be shown.
I do have fields that are always shown (not a virtual column), but I wasnโt able to create a require formula that demands filling the two fields - โCorretorโ and โImobiliรกriaโ - that I was having problems with.
I was using a DateTime field - โData e horรกrio de retiradaโ - that already has a formula (the app automatically fills this field) to test some require formulas, but I still had no luckโฆ
At first I would like to try to resolve this issue without using and extra virtual columns. Do you have any ideas/suggestions of require formulas that would work?
Thanks!
Put your valid if formula here, something like this:
AND(
{YOUR_PREVIOUS_CRITERIA},
isnotblank([Column_to_Enforce])
)
This will keep the original validation youโve got, while throwing into the mix the requirement that another field in the table have a value as well.
If you want to get fancy, you can throw in a valid if error message that tells people whatโs wrong so they know what to fix.
That works, but when someone attempts to save the entry without filling those two fields it shows โInvalid entry - Essa entrada รฉ invรกlida, in portugueseโ. The problem Iโm facing now is that once that happens the fields โCorretorโ and โImobiliรกriaโ disappear from the form, so the user has to hit โCancelโ and start over.
Is there a way to continue to show the other fields after the entry is invalid?
Thanks!
I would think this has somethin to do with your show if formulas.
Iโm not using any โShow_Ifโ formulas. Would there be any formulas that I could use to force the fields to be shown?
User | Count |
---|---|
18 | |
10 | |
8 | |
6 | |
5 |