Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 30180

Use it for questions about the Form API. Don't use it for entity or entity field forms.

2 votes
Accepted

display selectable drop down options based on a checkbox selection

You can use Drupal form api states. Example: function example_form_states($form, &$form_state) { $form['click_me'] = array( '#type' => 'checkbox', '#title' => t('Click me!'), ); $fo …
iamroald's user avatar
  • 611
1 vote
1 answer
943 views

How to invoke autodialog module close method in autodialog.js file using ajax_command_invoke

I have form that loads in modal using autodialog module and I have two buttons inside the form the close and save button. What I am trying to achieve is to just close the modal when the close button i …
iamroald's user avatar
  • 611
2 votes

My module form never submits

Try this one, attaching custom submit handler is a bit different in Drupal 8. change '#submit' => array('ajax_example_formSubmit') to '#submit' => ['::ajax_example_formSubmit'], $form['addAds'] = ar …
iamroald's user avatar
  • 611
1 vote
Accepted

How to invoke autodialog module close method in autodialog.js file using ajax_command_invoke

Finally I made it work. Instead of using asaf module (This module is used to AJAX-ify form submissions) - not aware of this one, just notice it appending its own ajax class. thought that autodialog a …
iamroald's user avatar
  • 611