HI friends,
Suppose i have options
John
Martin
Alex
as dropdowns
so as i choose the dropdown, in the next TEXT type field, a predefined keyword must appear.
Example :
Select John then its keyword JH must appear in next text field & same for other options also
Thanks a lot for your reply..
its working but the virtual column is uneditable. So i need a field which is editable, as user will input some numbers ahead of the code.& after adding the code, appsheet will also check whether this new num is unique or not…
i dont have an issue adding extra new column in google sheet for this purpose..
OK.
Then you would need a real column, with the expression in the “INITIAL VALUE” field.
1 Like
ok, but for every option , how would i set an initial value . Pls guide me here
Hi @pcreport
let’s name your dropdown column detailed in your first post “people”. This is ENUM type, with options values: John, Martin, Alex
Add another column in your sheets, and name it “result”. This is TEXT type, for the example.
regenerate the table structure.
go in the INITIAL VALUE field of the column “result”, and set this expression:
IFS(
[people]="John", "J",
[people]="Martin", "M",
[people]="Alex", "A"
)
give it a try on your app
1 Like
hi, appreciate your response.
The newly created entry shud also be unique, like it should not be there already on google sheet (at the backend).
I tried The one u listed..
Hi @pcreport
This ?
Aurelien:
Hi @pcreport
let’s name your dropdown column detailed in your first post “people”. This is ENUM type, with options values: John, Martin, Alex
Add another column in your sheets, and name it “result”. This is TEXT type, for the example.
regenerate the table structure.
go in the INITIAL VALUE field of the column “result”, and set this expression:
IFS(
[people]="John", "J",
[people]="Martin", "M",
[people]="Alex", "A"
)
give it a try on your app
Can you share a screenshot of your columns in your app editor?