The reason I am invalidating the content is because I have query that is running under a template file in order to get and display the top 5 most recent content. Everything works as expected for any updated content.
In a content type I have various fields including a date field and a time field. Both call their respective callBack.
The problem arises when I try to write the Date via the keyboard and not via the widget. Every time I type a key the callBack is invoked and it's boring
This is the code
$form['field_data']['widget'][0]['value']['#ajax'] = [
'event' => 'change',
'disable-refocus' => FALSE,
'callback' => 'CBDataMiss',
I am working on some form api functionality in where there is an entity_autocomplete that populates based on a view. I am trying to attach some additional ajax/submit functionality to this so that once an entity is selected, it submits the ajax request/form to do some additional things.
(For example, if a certain entity type is selected from the autocomplete, additional fields show up). #submit doesn't seem to work on entity_autocomplete, and you can't rebuild form_state (or set it) in the ajax callback, so I am trying to find another way to do what I need.
Thank you to an amazing Drupal Community here. It has been a great help to build our website on Drupal. But we have a specific issue:
Our website is on the current url: https://iasmantra.com/dev-dgb/web/
(The public-html folder has many other websites, then in dev-dgb folder within the web folder the drupal files are)
I am working on drupal 9.2 with the paragraph module. I want to remove the delete button that appears on the right of the form during user input because this delete button does not make sense for the end user who does not need this. Where and how to remove this button that appears on each paragraph content.