Hi,

I am new here with Drupal and using Drupal 7. I wants to create a admission form for my site and for that I have installed the webform module by now. I have also created one simple looking form through that.

Can someone please assist me to style my webform. I want to apply AJAX on this form, I want that as soon as mouse go over some box, sheado of that box should get change, something like that.

I am really confused and want a step by step explanation to do it. Can somebody please provide me some video tutorial for this or step by step explanation.

This would be a great help. Thanks in advance.

Regards,
Bhupender.

Comments

jmm42’s picture

You can create a custom module that is applied specifically to the webform in mind. In your module, you want to do a js call to the javascript file that will modify your form.

bhupi_sc’s picture

Hey,

Could you please provide me a single small example of it? and please if you could explain all the steps involved?

Thanks,
Bhupender.

jmm42’s picture

You could do something like: http://pastebin.com/vBiE8RLT

That method applies javascript to the form.

jmm42’s picture

In the 'info' file:

'conditional_field_js.js' should be 'conditional_field.js'. But you should get the idea from that. Everything is contained in the same 'conditional_field' module folder (whatever you choose to call your module).