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
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Appwrite cloud DB server error 500
Getting this error
- appwrite indexes not working (?
i have this index: ``` "indexes": [ { "key": "single-user-per-event", "type": "unique", ...