All Questions
256 questions
0
votes
1
answer
213
views
Custom submit handler is also called when deleting a node
So these are my functions:
function mycustom_form_alter(&$form, &$form_state, $form_id) {
$form['actions']['submit']['#submit'][] = 'b2share_form_submit';
return $form;
}
I can also ...
0
votes
0
answers
1k
views
Ajax not working for themed form
I have a form for which I want to theme with a template file, and I also need to use ajax in it. But I get this error messages in the log and ajax doesn't work :
message 1
Invalid form POST data.
...
0
votes
1
answer
2k
views
Making text fields autocomplete in views exposed filters
I want to make a text field auto complete in a views exposed form. I tried using the following code but nothing happens(I don't see that blue icon in the text field):
<?php
function nk_menu() {
...
0
votes
1
answer
1k
views
How to get 'add more items' / multiple fields working when creating a custom content type's create/edit input form using templates and theming (D7)?
For single instances of each field, I've successfully followed arajashe's excellent answer for controlling what input fields get displayed in the content type's create/edit form here:
https://drupal....
-1
votes
1
answer
1k
views
How to add existing fields to a custom form?
I have a custom form which shows the title field and a view embedded into the form. Both form and the view are updated via Ajax. I am trying to add the body field, but it is not showing up.
This is ...
-1
votes
1
answer
471
views
How can I create a user object in a custom form and save it?
Basically, I want to create a user object in a custom form and save it in the database.
This is my custom form and its handlers.
function registerme_newform($form, &$form_state) {
$form['account ...