Dynamic/Custom input cards
# 👀feature-requests
c
It would be great if we could make our own custom cards using Javascript 🙂 this would allow us to dynamically set the amount of options.
Copy code
java
{
  "type": "single-choice",
  "text": "Please select an option:",
  "choices": [
    { "text": "Option 1", "value": "1" },
    { "text": "Option 2", "value": "2" }
  ]
}

`
q
there is
let test = [ { label: 'Residential Property', value: 'residential property' } ]
I use this to build array than paste like this
c
@quiet-raincoat-89190 amazing ! this is something new to me but much appreciated. Does this work for other cards as well ?
q
you mean with images? I think so, didnt test it yet, still playing around, how to make bot answer accurate answers for my client with real estate properties. Since there is no knowledge base from Tables.
you just click that {x} so it's in blue and boom paste your array like that with label and value.
d
Neat I'm looking to get into this
l
@quiet-raincoat-89190 well i guess there is still one thing missing, making carousels dynamically
m
hey, did you check this video?

https://www.youtube.com/watch?v=V1D34HPhCd8

l
Yep
No way as far as i know to make the card number dynamic
@mysterious-greece-6693
m
oh yeah not yet
l
👍
q
I had a similar use case, which I posted there: https://discord.com/channels/1108396290624213082/1161345119346233364
c
thank you! will take a look
6 Views