Search Results
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 |
Use it for questions about JavaScript/PHP code to create asynchronous web applications.
0
votes
0
answers
387
views
Alter Address field in order to add a list of cities
I've tried to do that with a hook widget_alter, form alter, after_build callback, but any of them run my ajax callback. … $element['locality']['#prefix'] = '<div id="change-city-list">';
$element['locality']['#suffix'] = '</div>';
$element['administrative_area']['#weight'] = 0;
$element['administrative_area']['#ajax …
0
votes
1
answer
254
views
Ajax callback never called / triggered
I'm working on a payment gateway, so I've created a BasePaymentOffsiteForm form where I'm trying to make an ajax callback, but it is not working. … type' => 'textfield',
'#title' => $this->t('Mobile phone'),
];
$form['content']['validate_client'] = [
'#type' => 'button',
'#value' => $this->t('Validate Client'),
'#ajax …