Problem/Motivation

At the moment the field does not support AJAX. I wanted to use a callback function to do some calculation based on slider value.

Steps to reproduce

'#ajax' => [
    'event' => 'change',
    'callback' => '::formSelectCallback',
    'wrapper' => 'field-month',
  ],

Ajax will not work.

CommentFileSizeAuthor
#2 preprocess-ajax-form-3294240-2.patch438 bytesmajid.ali
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

majid.ali created an issue. See original summary.

majid.ali’s picture

StatusFileSize
new438 bytes
majid.ali’s picture

Status: Active » Needs review
baikho’s picture

Title: Field dose not support AJAX » Field does not support AJAX
Issue summary: View changes
Related issues: +#3273447: Range-slider library isn't loaded on a multistep form with ajax enabled (apart from step 1)
baikho’s picture

Version: 8.x-1.5 » 2.0.x-dev
baikho’s picture

Version: 2.0.x-dev » 2.x-dev
Assigned: majid.ali » Unassigned

  • baikho committed 74a3975d on 2.x
    [#3294240] fix: Field does not support AJAX
    
    By: baikho
    By: majid.ali
    
baikho’s picture

Status: Needs review » Fixed

@majid.ali Thanks for the fix!

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

  • baikho committed 1cb221fa on 3.x
    [#3294240] fix: Field does not support AJAX
    
    By: baikho
    By: majid.ali
    (...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.