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
- Seed db
hello there... is this correct way to seed appwrite
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...