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
- Increase by operators
I see appwrite have bunch of useful operators for querieng db. One more I would like to suggest is operators like increase the count of a int columns by 1,2.. ...
- createCollection Deprecated
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...