By Sujee on
Hi,
I am very new in drupal. I have to create a form using ajax and javascript in drupal. I have created the form using content types and managed fields. But I cant create submit and cancel button. Anybody know how to develop a simple add form with javascript validation and also ajax implementation. I dont prefer webform. Excluding that, give me some other idea to create a complete form using module. Please help me. I cant move further .
Thanks & Regards,
S.Sujatha
Comments
hiya not sure how to do it
hiya
not sure how to do it with javascript but there is a function called validate which may help
for example
where test == your module name
and 'your form element' == the form item you need to validated
also i think another way to do this is add the required to your form element like so
I'am new aswell and still on the learning curve but i think i have above correct i'am sure someone with greater knowledge will be able answer in more detail
regards
you can use form api to learn
you can use form api to learn abt forms in drupal.
The following links might be of help....
http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....
http://www.kvaes.be/web/drupal-three-simple-steps-to-adding-ajax-to-your...
http://www.ajaxlines.com/ajax/stuff/article/add_drupal_forms_using_ajax.php
Therez a module for ajax-ifying drupal forms. Ajax