I am trying to patch a submodule: jsonapi_defaults installed with jsonapi_extras (modules/jsonapi_extras/jsonapi_defaults) using composer on Drupal 8.9.10.
I use feeds to import data from csv file with eck entity processor and feeds module drupal 7, in fields of bundel i have entity reference field named nom candidat like in image bellow, but when i import data from csv file i need to create if note existe a new entity candidat in candidat entity type. In this case i have setup used feed entity reference and maping field "nom candidat" to according entity id, but when i upload to file it doesn't create candidat entity if not existe, how i can do that please
Hello iam using ajax in my drupal forms and i need to apply a test on my event witch is a user triggered or code triggered!
So, drupal forms provide an event key:
[#ajax] => array(
'event' => 'change',
... )
I need something like this to know about the event origin:
If(e.originalEvent) {
// user triggered
} else {
// code triggered
}
My purpose is to test my event and knowing that change event caused by code triggered (jquery replace html by ajax) or user triggered.
Since I can't find a solution, maybe someone can give a hint?
I have a form of a certain content-type where users can enter data and upload images (type: Media Library -> image, entity referencing). In addition, I have a Boolean field (uploaded images: yes / no) that I would like to use elsewhere.
(How) Is it possible that the Boolean field (BF) is automatically checked as soon as the user uploads an image?