There are multiple places in drupal core where you cannot use the easy to use #ajax element in forms to do your custom logic, but you
Add an openDialogCommand/closeDialogCommand (bikeshed the name) that takes a title, the content and potentially even the dialog settings.
Additional to the PHP level you need on the JS level the actual commands and additional binding for the form element.
Postponed on this
- (which is postponed on )
- (a spin of of this to speed up unblocking issues that might be waiting on this issue)
PASSED: [[SimpleTest]]: [MySQL] 53,127 pass(es). View
PASSED: [[SimpleTest]]: [MySQL] 53,144 pass(es). View