Does anyone know the easiest way to have two form fields in a Drupal Webform display side by side. I am using the Webform module to create a form, but obviously as you create it, all the fields list one right after the other. I have two fields that I would like to have displayed side by side. Is this possible? Oh and I'm using Drupal 6 in case that matters.
You could use the Arrange Fields module. This will let you drag and drop and fields anywhere, and should be more than enough to handle what you need.
Related
I'm following collective.examples.userdata to add some custom fields on the register form.
I want to add two fields, one for state and another for city, where the second load content based on the previously selected state.
My question is how it is possible, can do this only with the schema, using dynamic vocabularies or is need to edit registration form? How can I do it?
Another issue is how to load the registration form in a portlet. Is Possible fill the ##register viewlet?
Thanks!
Use javascript to do the dynamic part of the secondary field. To render the form inside a portlet, there are a couple of ways to do it but again, using javascript might be the easiest. You have place a register button that opens a registration overlay.
Take a look at http://plone.org/products/plone.app.jquerytools for how to wire it up.
I have a View where i would like to expose filters to permit the user to customize the view output.
I know i can use exposed filters but, instead of a drop down (or checkbox/radiobutton of exposed filters) i want to put a list of DIV or LI that, when clicked, can update the view output through ajax. In which way is it possible using Views 3 and Drupal 7?
You can use Better exposed filters module to change output of your filter items to links. And Use AJAX option in Advanced settings of a view to make filtering ajaxifyed.
I am not a .net programmer but I can write bits and pieces that I need, however, I have been having trouble working out the best way to achieve something for a website I'm altering.
I basically need to have a drop down list which is bound to a certain SQL call (already in place) but I also need the ability to manually type into the drop down list for items that do not exist. These items do not need to be entered into the SQL (I can handle the additional data separately) but I cannot find a way to type inside a drop down list while it is bound to a datasource.
Some entries in the datasource (SQL table) are used for one thing, but then a text string needs to be entered for optional entries which do not exist within this SQL table.
Does anyone know how I can achieve this or maybe another similar control can be used that offers this kind of functionality?
**Update to be more clear:
I need this at runtime. For instance, I do not need this to be within code I actually need the control to accept user input when someone is on the webpate.
Imagine a shopping list and all the items are within the drop down list then the user wants to add another item to the shopping list so they just type it into the drop down box and submit the page and its value will be used instead of an existing item.
As suggested by David, Telerik ComboBox provides that functionality.
Other ways, to use an ASP.NET and jQuery for implementing that functionality.
Using TextBox permits manual entry and using jQuery UI AutoComplete widget to bind required items.
jQuery Autocomplete and ASP.NET
TextBox AutoComplete with ASP.NET and jQuery UI
3 Different Approaches for Implementing the JQuery Autocomplete with ASP.NET
I'm looking to create a form that will always be in edit mode but I will need to bind to several tables. I want to display this as a cohesive page. I want to use databinding if possible and write as little code.
What are my options? Basically the FormView looked like a candidate but I don't want the edit buttons. I'll have 3 or 4 tables displayed on one page and I want a single button to submit it.
I know I could create a form and populate it manually but that seems like I may be doing more work then required.
FormView is the right way to go. It is very customizable and you can change the layout by using custom templates. It also allows hiding the edit buttons you are talking about. Put some time learning that control and you will get what you want!
Stay with the FormView; just set the DefaultMode="Edit"
I have various SQL tables and my use case is:
I'll choose 5 Products at random and they'll show in X control (don't know what to use here).
I know I'll have to use SQL and pull the product information using the ProductID as the hook to fish out every other information.
What Control should I use?
---If you want to show random product, then Adrotator is the best choice
---If you are getting product randomly from DB then Repeater or datalist could be the best choice
Depends how you want do display it.
Maybe a Repeater and ObjectDataSource will be useful, depending on your ORM.
Maybe a DataList, maybe a Repeater. explain more about what you want to show.
Two possibilities spring to my half-asleep mind.
the first would be to use a ListView or Repeater and have it themed out appropriately.
The second possibility would be to create a user control that displays the way you want, and then instantiate 5 instances on the web page.
I would make a user control that would take an array of ids as a property. Encapsulated in the user control would be everything you need to do to display your products. This would probably be an array of panels with images and labels.