Dynamic select boxes in custom forms


(Eric) #1

Hi everyone,


We have a section of the site where several standard pages / news items are listed for comment, these items change rather frequently and submitted by asset builder. I would like to be able to create a form allowing customers to comment on a particular issue. It is a simple form Name, Email, Comment.



Ideally I would like to create this from and nest it in these pages or a paint layout applied to these pages however depending on a topic, this form has to go to a different email address and in a form submission it would be great to have a name of an issue. I can think of a way to do this, but it would be much easier if custom form had a select field listing assets under root node.



My question: Is there a way to create a select field that lists asset under a particular root node. I know asset builder is capable of doing it, why isn't there a way to do it in custom form? I can see so many possibilities?



Maybe there is a way of doing it and I just don't know any better. Anyone knows?


(Nic Hubbard) #2

I have done this many times. What I do is create a new select field in the Custom Form, then I create an asset listing that mirrors that select. So all ID, name, etc attributes are the same. Then, the listing creates the <option> items for the list. Pretty easy.


I have not had any problems doing it this way.


(Eric) #3

Thanks Nick


Why didn't I think of that.



[feature request]Still it would be nice if select field had that functionality specially considering asset builder does it out of the box.[/ feature request]