Add UI to allow user to delete/clear a field value
See original GitHub issueGenerated from https://github.com/Camberi/firecms/discussions/390
When editing a row in a collection, it would be great to be able to clear a field, especially an enum
field specified by enumValues
. Doing so would remove the field from storage of that entity. If the field is required, it should generate an error. Otherwise, it should be allowed to remove a field that’s been set.
Hope this is enough information. Thanks @fgatti675 for encouraging filing an Issue.
Issue Analytics
- State:
- Created a year ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
How to clear field value for a field that has a UI Policy ...
I have a field 'Action on Accounts' - has 3 options: Create / Modify / Delete. Condition requested by the customer is If...
Read more >Delete input with value in (confirmation?)
My preferred approach would be to delete the field immediately and show a toast message with embedded action that would allow the user...
Read more >swift - UI Test deleting text in text field
When you tap and hold on the text field it opens menu where you can tap on "Select all" button. After that all...
Read more >HTML | Clearing the input field
Let us check out both of them. Method 1: Clearing Input on Focus. Syntax: <input onfocus=this.value=''>. Approach: Create an input field.
Read more >Add and append choice(s) | Help - Zoho Deluge
Overview. The Add deluge task replaces all the existing choices in a single-select, multi-select field or a lookup field type with specified choices....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fgatti675 Just read the conversation above and we are looking for the same. So, lets day the category, which is “Cameras” in the screenshot above is optional. The user can select a category or none. Lets assume the user has selected “Cameras”. Now he decides to remove the category, this is not possible now.
Hi @rickpasetto So having a clear button when a cell is selected in the collection view, that sets the value to
null
would work for you?