I am trying to create required enum attribute but unable to-
its stuck on select a value
I wasn't able to reproduce it What version of Appwrite you're using?
In the current version the dialog is a bit different
Got it I made a mistake I though it's an old version when it's actually the latest one My bad
It's seems like when you mark the Required field as required its also applied to the Default value one.
<Enum
id="default"
label="Default value"
attribute={{
key: data.key,
type: 'string',
status: 'enabled',
format: 'enum',
elements: data.elements ?? [],
required: data.required,
default: data.default
}}
bind:value={data.default} />
<InputChoice id="required" label="Required" bind:value={data.required} disabled={data.array}>
Indicate whether this is a required attribute
</InputChoice>
oh
for now imma create an integer attribute
since its a difficulty attribute and i think 0,1,2 will do instead of easy, medium and hard xd
Yes for now that's seems right
Although I have some idea, Let me check
I think this is the related issue: https://github.com/appwrite/appwrite/issues/5391
Okay, I've upgrade my Appwrite to 1.3.1
You can do this as a workaround till the bug is fixed.
What I'm doing I just deleted the select element
And the request worked as it doesn't really need the select value when required.
I've mentioned it in the Console issues https://github.com/appwrite/console/issues/412
ah nice one
Is it okay if we just use the appwrite issue and close the console one?
Sure thing
Recommended threads
- Rate límit reset
I've made an error in the code by not setting a limit on how much rows should i get per request because i was working with a small db for testing. Last night Iv...
- How to set permissions using the createO...
Hi, I'm trying to create a set of registers in a table using the tableDB.createOperations function, but it seems like it doesnt support/expect the usage of the ...
- Fulltext index creation fails due to Inn...
I'm running a self-hosted Appwrite 1.8.1 instance and encountering an issue when creating fulltext indexes on a collection. **The Problem:** Fulltext index cre...