how to build dynamic select boxes using reagent-forms

46 views
Skip to first unread message

Johannes

unread,
May 8, 2019, 2:16:46 PM5/8/19
to ClojureScript
Hi,

I'm building my UI using reagent/reagent-forms. I cannot figure out how build a dynamic select box as described in 
for example.
The problem of reagent-forms seems to be that the form-template given to the bind-fields call is evaluated once. Therefore the options of the second select box are unaffected by any state changes resulting from using the first select box.
My problem is that I don't understand Javascript well, so I cannot follow the solution given on the linked web page.

Are there any ideas what I could do?

Johannes

Phill Wolf

unread,
May 9, 2019, 4:24:07 AM5/9/19
to ClojureScript
Are you finding that reagent-forms is helpful overall?  "the form-template given to the bind-fields call is evaluated once" sounds like a problem.

Johannes Brauer

unread,
May 9, 2019, 6:40:42 AM5/9/19
to clojur...@googlegroups.com

Am 09.05.2019 um 10:24 schrieb Phill Wolf <phill...@gmail.com>:

Are you finding that reagent-forms is helpful overall? 
Until now I found it quite useful. But now I get doubts about it.

"the form-template given to the bind-fields call is evaluated once" sounds like a problem.

--
Note that posts from new members are moderated - please be patient with your first post.
---
You received this message because you are subscribed to a topic in the Google Groups "ClojureScript" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojurescript/_3Uy5UgjKh4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojurescrip...@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojurescript/e80d920e-0063-4441-a404-7e6f2de31b62%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages