44 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
66
views
How to add ajax for State select in address field
Under Drupal 11.2.5. I installed Address Module (2.0.4)
I want to trigger an AJAX request when the State changes in field_address. The state is named "administrative_area" in address field
...
0
votes
1
answer
52
views
Google Captcha is hidden upon calculating the shipping cost in Drupal Commerce checkout form
I have the following form
function beyond_shipping_form_alter(&$form, FormStateInterface $form_state, $form_id) {
if ($form_id == 'commerce_checkout_flow_multistep_default') {
$...
0
votes
1
answer
1k
views
Ajax and hook_form_alter
I'm getting a "The value you selected is not a valid choice." error for an Ajax modified field when I submit a custom altered node/add form. An "Illegal choice error is also written to ...
user avatar
user4202824
1
vote
1
answer
2k
views
How to detect Drupal (8) views ajax call start (with JS only)
I'm trying to do some custom UI tweaks while a view is being reloaded with ajax.
I can find ways to trigger events when the ajaxcall is complete but I can't seem to find something similar for when the ...
3
votes
2
answers
2k
views
Drupal-8 Modal does not handle errors on login
I have used 'use-ajax' class to render login form in a modal. I want to handle validation errors on same modal without closing it. On successful login it is redirecting correctly, but when an error ...
4
votes
1
answer
10k
views
drupal 8 Calling a JavaScript function after an #AJAX event
I want that js script running after doing the ajax action.
For example, its work for Drupal 7:
Drupal.behaviors.events = {
attach: function(context, settings) {
$('#example').bind('...
0
votes
1
answer
1k
views
How to create an image button that behaves like a button in drupal 7?
How I want it to work:
I have list of buttons(type button) that trigger an Ajax call that add the that item to a list. This works as exactly as I want it except for the button looks ugly .
The ...
5
votes
1
answer
283
views
Issue for a "two dimentionnal 'add another item' " with FormStateInterface::getTriggeringElement()
I'm learning drupal 8. I want create a page who contain a 'two dimensionnal' 'add another item' form. My code works well almost, but I have a strange behavior when I add rooms to a house (there is a ...
0
votes
1
answer
60
views
drupal 7 ajax framework example does not work
I want to add one form in user profile page. So i created user-profiled.tpl.php. In that template,i just copied the example from ajax framework for testing. Here is the whole codes:
function ...
1
vote
0
answers
120
views
Drupal Multiupload Filefield Widget conflict with mutiselect ajax dropdown
I have created a multiupload field in my node using Multiupload Filefield Widget. I am using the code below to alter the default node form.
There is an ajax based dependent dropdown field in the form ...
0
votes
1
answer
100
views
Drupal AngularJS ajax simple ng-repeat update
i have problem replacing my ng-repeat
my html inside ng-app
<a href="#proceed" ng-click="order.submitOrderAjax()">
<?php print t('Finish order'); ?>
</a>
<ul>
<li ...
1
vote
1
answer
121
views
Drupal AJAX HTTP error occurred During Installation
I am trying to install Drupal using IIS 7 on Windows and it gets pretty far in the installation before it fails with the below error message. I always end up having to go back into Windows Services ...
0
votes
3
answers
2k
views
Div Refresh without page load using ajax drupal
I want to load the data from db and want to display the counts example: message(5).So i have written the query inside the the div.
<?php
function load()
{
echo "<div id='count'&...
0
votes
2
answers
498
views
Insert query using ajax drupal
I am totally new to Drupal Ajax. In my projects one simple form with submit button only there for insert "yes" value to Database. so it should be done with Drupal Ajax. So When that button submit the ...
1
vote
2
answers
975
views
Drupal 7 get node id in AJAX
i'm submitting a form to create node using ajax. I can able to create a node using drupal_get_form('node_form', $node) but i need the node id in response. Can anyone help me out to get the node id in ...