This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Can't access data posted from Dialog.ajax to dialog box

I am opening a simple dialog box from Ajax, using the following code-

var exportActionDialog = Dialog.ajax({
dialog: dialogSettings,
dialogType: 'modal',
type: 'POST',
url: '/web/admin/crm/export-dialog',
data: { whatever: 'itworking' },
progress: { type: 'throbber'}
});
exportActionDialog.execute();

The dialog actually opens successfully and displays the form associated with the url.

But I can't get the value of the whatever post variable.

Module

How beginner user of drupal org can improve in module development and code question?

For Beginner user of the websites, What do he or she understand to applying website well.?

For Beginner web user, Which modules should  he or she study ? 

Thanks drupal.org.

How to use ExtensionList::getName in a controller class

I want to call this function: public function ExtensionList::getName from my controller class in order to get the human name from the machine name. I'm trying to do it like this:

$human_name = \Drupal\Core\ExtensionList::getName('advanced_help');

which isn't working. The error is:

Error: Class "Drupal\Core\ExtensionList" not found in …

TEXT_FORMAT Don't working from Ajax

Hello,

I have a big problem for adding a  text_format type in a form from Ajax callback.

Exemple : Part in WidgetBase formElement(...) function

$form['zonedev'] = [
  '#type' => 'markup',
  '#markup' => t('<div id="suite"></div>'),
];

Exemple : Ajax Callback

Unable to add time into Db

Hi, I am following this youtuve tutorial on how to make a module:
https://www.youtube.com/watch?v=iY8Ve2ZEgFY&list=PLpVC00PAQQxFNDfiXn6LH1...

For some reason when I try to submit my data "Email field" I get an error. outputted the error it says:
 

How to add dot navigation/pager to tour steps?

How should I code to have 'dot navigation' or pager in every box that is shown by tour ? I want my user to go to any tour step/tip at will ... not just 'next'

I have seen progress (like 7 out of 10 etc) added to all tour boxes.

Please let me know how to add clickable dots or page numbers in every step box.

Thanks

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions