Can I disable "Clear" on an enum?

This is an enum and I donโ€™t want users to be able to tap on โ€œClear.โ€ It serves no purpose in my app and is only a distraction. Is there no way to disable it?

Solved Solved
0 14 1,141
  • UX
1 ACCEPTED SOLUTION

You could conditionally change the word "Clear" to an empty string "" for that form, using CONTEXT("View") and the UX>Localization settings. But I think the button will still be there if they click the blank area where the text would be.

Are the users allowed to change the Enum once a value has been set? If not, maybe use Editble_If ISBLANK([_THIS]), and that should hide the Clear button.

View solution in original post

14 REPLIES 14

You could conditionally change the word "Clear" to an empty string "" for that form, using CONTEXT("View") and the UX>Localization settings. But I think the button will still be there if they click the blank area where the text would be.

Are the users allowed to change the Enum once a value has been set? If not, maybe use Editble_If ISBLANK([_THIS]), and that should hide the Clear button.

Another thought:
Try setting the Valid_If to ISNOTBLANK([_THIS]) and see if the Clear button is still available. I donโ€™t have time to test it at the moment. Just an idea.

Thanks! Iโ€™m using the โ€œvalid ifโ€ slot to create the list of choices so I donโ€™t think ISNOTBLANK([_THIS]) will work in my case.

In that case, why dont you add one more physical column to ref to field in question with ENUM list using initial value set up and reset on edit mode as well. And place the same ISNOTBLANK([_THIS]) condition for validity check. Then hide this filed from the eyes of app user.
Or you just simply move the enum list expression from validif constrain to suggested value.
Either way, I thing it is possible sir.

I prefer not to use โ€œsuggested valueโ€ because it gives the user the option to type something in, which wouldnโ€™t make sense because this is just a list of options. Interestingly, even if โ€œAllow other valuesโ€ is off, the user can still type in another value if I put the list in โ€œsuggested value.โ€

I donโ€™t understand how to ref another column to this field.

I think Iโ€™ll go with @GreenFluxโ€™s UX>Localization solution. It produces the appearance I was looking for and I doubt that many people will click on something they canโ€™t see. Even if they do, theyโ€™ll be able to recover from it pretty easily in this case.
NOTE: An empty string didnโ€™t work. I need to have one space. Optically itโ€™s the same but instead of โ€œโ€ I needed to use " " in the expression.

Still, I think it would be nice to be able to just get rid of โ€œClearโ€ in contexts where it doesnโ€™t make sense. Also, I find the documentation to be lacking. There are several articles on how to make dropdown menus but I couldnโ€™t find clear explanations about each of the options. For example

I have โ€œDefaultโ€ in the โ€œValuesโ€ spot, and if I delete it I get a warning, but I donโ€™t really understand how this works and couldnโ€™t find an explanation. In my context turning โ€œAllow other valuesโ€ on and off doesnโ€™t seem to change anything. If I could find detailed explanations about each of these options (what they do in which contexts, when they are useful and when they have no effect), that would help to avoid a lot of trial and error.

Yes they are not well documented.

Just a question. You re making list items by select expression.
The table you referring to should be able to add new rows. Create slice out of that table but read only then use slice in the valid if constrain. I think user canโ€™t add new values

Thanks! What Iโ€™m doing is allowing the user to change a value in one cell of the spreadsheet via a detail view:

So, Iโ€™m not adding rows. The choice that the user makes changes the content of a list that the page links to.

Also, after I posted last I found that turning โ€œAllow other valuesโ€ off caused an error. I donโ€™t really understand how it works but I turned it back on.

honestly me neitherโ€ฆ I play around with different settings and find a way all the time at the end. Yes, not effective.
Out of curiosity, to construct the list, i m wondering what different or same story will happen when we user unique expression rather than select. Both return list type so it will bring the same result?

Appsheet mystery.

SELECT(..., ..., TRUE) should be equivalent to UNIQUE(SELECT(..., ...)) and UNIQUE(SELECT(..., ..., FALSE)).

As I recall, any duplicates get ignored when I have a list in the โ€œValid ifโ€ slot, even if I neglect to use the SELECT(..., ..., TRUE) form that @Steve indicated.

Yup . . .

{โ€œall videosโ€}+SELECT(Seminar[Source], TRUE, TRUE)+{โ€œall videosโ€}

produced

2X_b_b01d47e00f886705b19cab7e40d851ac193dbe58.png

Duplicate value ignored.

I am returning to this topic today because I am working on a different app in which Iโ€™ve encountered the same issue. In this app, setting the Valid_If to ISNOTBLANK([_THIS]) was an option so I gave it a try. But, alas, no effect. I really thing it would be nice to be able to disable the clear button entirely. I think that hiding โ€œClearโ€ via localization settings may be the best approach under the circumstances but not exactly ideal. If others would also like to disable the โ€œClearโ€ option, Iโ€™ll make this into a feature request.

You can select the REQUIRE? option. Still has a โ€œClearโ€ button but it will give โ€œThis entry is requiredโ€ message if the entry is unselected or after you press the โ€œClearโ€ button.

Thanks! Thatโ€™s another option.

Top Labels in this Space