It works now..yupii.
Instead of field group i used ECA directly.
Form:add grouping element and I have added element name like "datex" , title and fields just field_date so I was able to use element name "datex" as my field name of Add state.
However as Title is required i was not happy with details wrapper so I added additional "form: add container element" and element name "datex" so now everything works as expected.
However I am not sure how this "form: add container element" works.
I think I do not need both forms at the same time but currently this is my workaround.
Do you think there can be any patch created which will add container to date fields by default so no need to do such "workarounds"?
thank you, it seems you are right.
I have also tested with custom_field → module and it does not hide the field by default when the widget is "Stacked" however when you change it to Flaxbox and use "fieldset" or "details" type of Wrapper it works.
So I wanted to replicate the same as you suggested with the date and for me the fastest way is to use field_group → module, so I added field group HTML element , with "div" element and added extra CSS class "datewrapper" and added CSS like
.datewrapper {
padding: 10px;
border: 1px solid #ccc;
background-color: #f9f9f9;
}
However I can still see the date field , of course the css is applied correctly, but still not working with visibility. I have tried also with fieldset type of field group with the same result :(
Any suggestion? Any advice would be greatly appreciated.
any update guys ?
Hi,
It seems the blocker has been resolved. Do yo have a plan to continue ?
This module looks like the one I was looking for.
Hi flocondetoile - do you have a plan to release drupal 11 version?
Any update?
Not sure why the issue was created twice.
Hi atomi, was your problem fixed? If not, provide more details or your model.
+1
Thank you, I started from the scratch and somehow it is working now with above Forms.
Thank you. I think this is exactly what I have done like 10times already but the problem is that in that case also the default save button is impacted and both save/submit and custom button redirects to same destination. But i only need the custom button to redirect there.
Button has "trigger name" so i wanted to try condition form:compare triggered submission but still does not work.
Hi yes please close this. ECA module replaces this whole module so i unistalled it already.
Are you able to create a new module for d10/d12 and maitain it?
Hi,
So once you click save button - nothing is saved?
Wau such a simple solution and I have spent hours with a complex one.
Much appreciated.Another module can be replaced with ECA now.
coaston → created an issue.
Hi @freelock, any progress? This sounds good.
You're right. In my local environment, I have about 10 different test sites, and this particular one is quite old, using an older Drupal 9 or 10 version. But if needed, I can recreate it, as it's very easy to set up.
I'm also impressed because I've been missing this feature for almost two years, and I have sites in production that couldn't be migrated from Drupal 9 to 10 because there's no stable release of the Business Rules module. So now we can finally migrate to Drupal 10.
For drupal 10/11 we can use ECA to achieve the same as described here 💬 Dependent fields with ECA Active .
Thank you.
Information for others who are facing the same problem as I am and want to replicate the 'dependent field': Here is the exact model that performs this function Eca dependent-field → , and we can finally remove the rules module and use only ECA.
Here you can find my video Eca Dependent. →
Note: who needs to use Taxonomy instead of select list, just use Options instead of "11:11: anything like "[tid]:[name] so "671:Admin change"
@jurgenhaas I believe this example can be added to eca library because i believe many users will find is useful and this feature prevented to get rid of rules as described here. →
Hi jurgenhaas,
Sorry, I somehow didn't notice that you had replied until just now.
I wanted to try, but not sure what I am doing wrong. I have used following example : Endpoint Test and i have updated Route Match to "entity.node.edit_form"
so now when I navigate to article node/x/edit I can see message like "You are visiting "[mynode:title]" so it works for my edit form, however as you suggested there should be ajax available now, so I wanted to select TAG and display the current value, however it does not work until I save the article.
In other words when I navigate node/x/edit and i would like to see message like "You are visiting "[mynode:title] and [mynode:field_tags]" but I can see message ""You are visiting "[mynode:title] and ..." which is fine because there is no any TAG added yet. Now I add tag with value 1 for example, but message still display "You are visiting "[mynode:title] and ..." and i need to save the node to see expected valu ["You are visiting "[mynode:title] and [mynode:field_tags]" so I cannot work dynamically with that value and possible update dependent field and ajax is not working in this case, or am I missing anything ?
thank you,
Will try this method, it sounds less complicated.
I guess this can be closed.
Thank you jurgen,
If you mean to create a content type in drupal with fields and use for example feeds module to load them - this would require additional step in between as vba cannot interact with drupal server directly to store for example json because of firewall, vpn and proxy in our case.
So we can use just mysql and using insert into table commands is quite difficult in drupal as it has many references and many tables as every field has 2x. This could be option but wanted to try any simplifier one thats why i wanted to use that views custom table one but did not expect that eca wont work with..
Hello, any progress ? would love this feature
Hello I am experiencing the same issue now once I enabled this theme and navigated to front page - for the latest release:
Twig\Error\LoaderError: Template "@intercept-base-components/more-link/more-link.twig" is not defined in "themes/contrib/intercept_base/templates/views/views-view.html.twig" at line 1. in Twig\Loader\ChainLoader->getCacheKey() (line 111 of vendor\twig\twig\src\Loader\ChainLoader.php).
Twig\Environment->getTemplateClass('@intercept-base-components/more-link/more-link.twig', NULL) (Line: 204)
Drupal\Core\Template\TwigEnvironment->getTemplateClass('@intercept-base-components/more-link/more-link.twig') (Line: 296)
Twig\Template->loadTemplate('@intercept-base-components/more-link/more-link.twig', 'themes/contrib/intercept_base/templates/views/views-view.html.twig', 1) (Line: 45)
__TwigTemplate_f74bde5336ebaccf21e1a8738381da67->doDisplay(Array, Array) (Line: 387)
Twig\Template->yield(Array, Array) (Line: 343)
Twig\Template->display(Array) (Line: 358)
Twig\Template->render(Array) (Line: 35)
Twig\TemplateWrapper->render(Array) (Line: 33)
twig_render_template('themes/contrib/intercept_base/templates/views/views-view.html.twig', Array) (Line: 348)
Drupal\Core\Theme\ThemeManager->render('views_view', Array) (Line: 491)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 504)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 248)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 238)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 239)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 128)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Hi bigtomfelix - Did you find any solution ? Struggling with the same currently.
I also found out it ignores values. When I do have grouped filter for project status where values are Open,Closed, Cancelled. And select multiple Open and Closed it always shows 0 results even there are values. It works fine when I select only one value - Open or CLosed or Cancelled, but once multiple selected it shows 0 results.
Any idea?
Hi,
I can confirm it works now. It was due to missing permissions. This can be closed. Thank you for your help
My bad, i had hyperlink to other side.
It works as expected. sorry.
+1 this is really required feature
+1 I am not using paragraph - don't have such module installed. But experiencing the same issue right after I have updated module from 8.x-1.0-alpha10 to version 4.
Need to revert back.
My bad, it needs to be composer remove drupal/artisan_styleguide
intead of drupal/artisan.
Reinstalled.
Hello,
Thank you for your patch, after I applied i I can no longer see reported issues, but now I can see a different one, right after I navigate to :
/admin/appearance/settings/artisan
and it looks good, but once I go back to list : /admin/appearance
I can see following errors :
User warning: mkdir(): Permission Denied in Drupal\Component\PhpStorage\FileStorage->createDirectory() (line 123 of core\lib\Drupal\Component\PhpStorage\FileStorage.php).
Drupal\Component\PhpStorage\FileStorage->createDirectory() (Line: 73)
Drupal\Component\PhpStorage\FileStorage->ensureDirectory() (Line: 86)
Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage->save() (Line: 112)
Drupal\Core\Template\TwigPhpStorageCache->write() (Line: 397)
Twig\Environment->loadTemplate() (Line: 299)
Twig\Template->loadTemplate() (Line: 141)
__TwigTemplate_fc3558236e87837d55e7452af55f3003___1666261677->doDisplay() (Line: 387)
Twig\Template->yield() (Line: 44)
__TwigTemplate_fc3558236e87837d55e7452af55f3003->doDisplay() (Line: 387)
Twig\Template->yield() (Line: 343)
Twig\Template->display() (Line: 358)
Twig\Template->render() (Line: 35)
Twig\TemplateWrapper->render() (Line: 33)
twig_render_template() (Line: 348)
Drupal\Core\Theme\ThemeManager->render() (Line: 547)
Drupal\Core\Render\Renderer->doRender() (Line: 504)
Drupal\Core\Render\Renderer->doRender() (Line: 504)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 484)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 53)
__TwigTemplate_e6c575e2478dee0e4e5aa08b56f66703->doDisplay() (Line: 387)
Twig\Template->yield() (Line: 343)
Twig\Template->display() (Line: 358)
Twig\Template->render() (Line: 35)
Twig\TemplateWrapper->render() (Line: 33)
twig_render_template() (Line: 348)
Drupal\Core\Theme\ThemeManager->render() (Line: 491)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 484)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 79)
__TwigTemplate_e8f8e16d15af9fe577a81bcdbe82b2f1->doDisplay() (Line: 387)
Twig\Template->yield() (Line: 343)
Twig\Template->display() (Line: 358)
Twig\Template->render() (Line: 35)
Twig\TemplateWrapper->render() (Line: 33)
twig_render_template() (Line: 348)
Drupal\Core\Theme\ThemeManager->render() (Line: 491)
Drupal\Core\Render\Renderer->doRender() (Line: 504)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 484)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 76)
__TwigTemplate_1864bf2a9ade56640132b7f2597256cb->doDisplay() (Line: 387)
Twig\Template->yield() (Line: 343)
Twig\Template->display() (Line: 358)
Twig\Template->render() (Line: 35)
Twig\TemplateWrapper->render() (Line: 33)
twig_render_template() (Line: 348)
Drupal\Core\Theme\ThemeManager->render() (Line: 491)
Drupal\Core\Render\Renderer->doRender() (Line: 504)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 484)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 105)
__TwigTemplate_8f2724f069a50a3d19c21f6d3c18f269->doDisplay() (Line: 387)
Twig\Template->yield() (Line: 343)
Twig\Template->display() (Line: 358)
Twig\Template->render() (Line: 35)
Twig\TemplateWrapper->render() (Line: 33)
twig_render_template() (Line: 348)
Drupal\Core\Theme\ThemeManager->render() (Line: 491)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 238)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 239)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 128)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)
and
Warning: rename(sites/default/files/php/twig/.94e_Y4GBViuBqlk9koT2VDzXcYM,sites/default/files/php/twig/678e04c1dff0a_artisan:input_Rnud8fHa-iQDQuKqj7LyJ6jkM/SP2hCteBBI9RyZouZVV_qNOO5O1j0zMKOXGJr7WwTZk.php): The system cannot find the path specified (code: 3) in Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage->save() (line 88 of core\lib\Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage.php).
Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage->save() (Line: 112)
Drupal\Core\Template\TwigPhpStorageCache->write() (Line: 397)
Twig\Environment->loadTemplate() (Line: 299)
Twig\Template->loadTemplate() (Line: 141)
__TwigTemplate_fc3558236e87837d55e7452af55f3003___1666261677->doDisplay() (Line: 387)
Twig\Template->yield() (Line: 44)
__TwigTemplate_fc3558236e87837d55e7452af55f3003->doDisplay() (Line: 387)
Twig\Template->yield() (Line: 343)
Twig\Template->display() (Line: 358)
Twig\Template->render() (Line: 35)
Twig\TemplateWrapper->render() (Line: 33)
twig_render_template() (Line: 348)
Drupal\Core\Theme\ThemeManager->render() (Line: 547)
Drupal\Core\Render\Renderer->doRender() (Line: 504)
Drupal\Core\Render\Renderer->doRender() (Line: 504)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 484)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 53)
__TwigTemplate_e6c575e2478dee0e4e5aa08b56f66703->doDisplay() (Line: 387)
Twig\Template->yield() (Line: 343)
Twig\Template->display() (Line: 358)
Twig\Template->render() (Line: 35)
Twig\TemplateWrapper->render() (Line: 33)
twig_render_template() (Line: 348)
Drupal\Core\Theme\ThemeManager->render() (Line: 491)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 484)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 79)
__TwigTemplate_e8f8e16d15af9fe577a81bcdbe82b2f1->doDisplay() (Line: 387)
Twig\Template->yield() (Line: 343)
Twig\Template->display() (Line: 358)
Twig\Template->render() (Line: 35)
Twig\TemplateWrapper->render() (Line: 33)
twig_render_template() (Line: 348)
Drupal\Core\Theme\ThemeManager->render() (Line: 491)
Drupal\Core\Render\Renderer->doRender() (Line: 504)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 484)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 76)
__TwigTemplate_1864bf2a9ade56640132b7f2597256cb->doDisplay() (Line: 387)
Twig\Template->yield() (Line: 343)
Twig\Template->display() (Line: 358)
Twig\Template->render() (Line: 35)
Twig\TemplateWrapper->render() (Line: 33)
twig_render_template() (Line: 348)
Drupal\Core\Theme\ThemeManager->render() (Line: 491)
Drupal\Core\Render\Renderer->doRender() (Line: 504)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 484)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 105)
__TwigTemplate_8f2724f069a50a3d19c21f6d3c18f269->doDisplay() (Line: 387)
Twig\Template->yield() (Line: 343)
Twig\Template->display() (Line: 358)
Twig\Template->render() (Line: 35)
Twig\TemplateWrapper->render() (Line: 33)
twig_render_template() (Line: 348)
Drupal\Core\Theme\ThemeManager->render() (Line: 491)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 238)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 239)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 128)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)
Once I uninstall Artisan theme - I do not see such issues anymore.
Hello, i successfully got http post request and i can display json data.
How can i read them so i can store it to fields?
Hi tostinni,
You patch works fine for me, but should not be there any AJAX ? It does not make sense to me to click save button and every time the page is reloaded. In my case I am working with modal window, hence once I click save , modal is being closed, but I would like to continue and save also other rows.
Also even there is not modal - it sill refresh the whole page and if there are 20 rows I need to remember still which wan was updated last because after the refresh I am on top.
Would be possible to enable ajax call for this save button so it is saved immediately with no page reload ?
Hello loze,
I just tried your patch #68 but I am getting 1 Error and 2 Warnings, hence it does not work for me.
Error: Call to a member function getEntityTypeId() on null in Drupal\views_entity_form_field\Plugin\views\field\EntityFormField::updateEntity() (line 840 of //modules/contrib/views_entity_form_field/src/Plugin/views/field/EntityFormField.php)
#0 [internal function]: Drupal\views_entity_form_field\Plugin\views\field\EntityFormField::updateEntity()
#1 //core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php(69): call_user_func_array()
#2 //core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php(109): Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse()
#3 [internal function]: Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber->onException()
#4 //core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()
#5 //vendor/symfony/http-kernel/HttpKernel.php(229): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#6 //vendor/symfony/http-kernel/HttpKernel.php(92): Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
#7 //core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#8 //core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#9 //core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#10 //core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#11 //vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#12 //core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle()
#13 //index.php(19): Drupal\Core\DrupalKernel->handle()
#14 {main}
where Line 840 is :
// Reload the entity.
$entity_type = $entity->getEntityTypeId();
Warning: Undefined array key "#relationship" in Drupal\views_entity_form_field\Plugin\views\field\EntityFormField::updateEntity() (line 832 of //modules/contrib/views_entity_form_field/src/Plugin/views/field/EntityFormField.php)
#0 //core/includes/bootstrap.inc(347): _drupal_error_handler_real()
#1 //modules/contrib/views_entity_form_field/src/Plugin/views/field/EntityFormField.php(832): _drupal_error_handler()
#2 [internal function]: Drupal\views_entity_form_field\Plugin\views\field\EntityFormField::updateEntity()
#3 //core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php(69): call_user_func_array()
#4 //core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php(109): Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse()
#5 [internal function]: Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber->onException()
#6 //core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()
#7 //vendor/symfony/http-kernel/HttpKernel.php(229): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#8 //vendor/symfony/http-kernel/HttpKernel.php(92): Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
#9 //core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#10 //core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#11 //core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#12 //core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#13 //vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#14 //core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle()
#15 //index.php(19): Drupal\Core\DrupalKernel->handle()
#16 {main}
where line line 832 is :
elseif (!empty($trigger['#ajax']['#relationship']) && $trigger['#relationship'] != 'none') {
$entity = $results_row->_relationship_entities[$trigger['#ajax']['#relationship']];
and
Warning: Undefined array key "none" in Drupal\views_entity_form_field\Plugin\views\field\EntityFormField::updateEntity() (line 833 of //modules/contrib/views_entity_form_field/src/Plugin/views/field/EntityFormField.php)
#0 //core/includes/bootstrap.inc(347): _drupal_error_handler_real()
#1 //modules/contrib/views_entity_form_field/src/Plugin/views/field/EntityFormField.php(833): _drupal_error_handler()
#2 [internal function]: Drupal\views_entity_form_field\Plugin\views\field\EntityFormField::updateEntity()
#3 //core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php(69): call_user_func_array()
#4 //core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php(109): Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse()
#5 [internal function]: Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber->onException()
#6 //core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()
#7 //vendor/symfony/http-kernel/HttpKernel.php(229): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#8 //vendor/symfony/http-kernel/HttpKernel.php(92): Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
#9 //core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#10 //core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#11 //core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#12 //core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#13 //vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#14 //core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle()
#15 //index.php(19): Drupal\Core\DrupalKernel->handle()
#16 {main}
Where line 833 is :
$entity = $results_row->_relationship_entities[$trigger['#ajax']['#relationship']];
Well Looks like serial will do the trick.
One condition "Compare Two scalar Values" and compare if field stage is equal to Completed (Negate the condition) then Gateway and again "Compare Two scalar Values" and compare if field stage is equal to CLOSED (Negate the condition)
Previously I tried one Gateways and 2 different connections. My bad.
Based on →
Description:
\Drupal\Core\Render\Element\RenderElement and \Drupal\Core\Render\Element\FormElement are deprecated and will be removed in Drupal 12. Instead, use \Drupal\Core\Render\Element\RenderElementBase and \Drupal\Core\Render\Element\FormElementBase respectively. This includes all the static methods on both classes.
So when I replaced
use Drupal\Core\Render\Element\FormElementBase;
with
use Drupal\Core\Render\Element\FormElement;
and
class UltimateTable extends FormElementBase implements ContainerFactoryPluginInterface {
with
class UltimateTable extends FormElement implements ContainerFactoryPluginInterface {
I was able at least enable module so no rollback is needed.
However there are 2 options now. Remove D9 compatibility ,or create additional D9 version with method.
Well now I know the reason. It
I am trying to change/add value so cannot get rid of verification error message once everything should be OK.
It is not Ok ,because the Form could not be build correctly because of 15818966 🐛 Illegal offset type Active issue, so now I can try to work on that issue again.
Well, I found out the reason.
It was a GIN Admin theme. When I switched to Claro - no issue found.
I had been using Gin 8.x-3.0-rc10 and now when I updated to latest Gin 8.x-3.0-rc13 everything works as expected.
Well to be honest I did not expect such fix, but glad it works after 2 days of troubleshooting...
Thank you for your support,
I have reverted back to version 10.2.5 (also the database) but I found out there is the same issue. I haven't tried to build the form there before to be honest.
However I am building form on my site where is still D9 running with no issues and it seems all modules are the same /enabled on both sites.
Do you think it can be module related ?
Thank You,
I am using this views_entity_form_field because of BULK updates of content types.
So I am experiencing now different type of issue. I wanted to use QUERY:Views to get nid of all nodes so system (ECA) can validate them one by one.
- It works and do validation, however I am unable to click save button even I have changed/add required values because every time when there is a new loop - it will take another one will determine still the old value (empty field) and system things it is still empty even I am trying to change/add value so cannot get rid of verification error message once everything should be OK.
Looks like that :form build is missing here and I won't be able to continue.
It looks like the form in views with this module "views_entity_form_field" is being built , so no need to build it again.
Now I am getting issue to get the current nid. My url of view is "/form-field-verification-test/3651
"
Everything works fine as expected with this form now when I add "Entity:Load" and configure : Load entity form : TYPE and ID and Entity type is Content and entityID =3651
Of course this one works because there is exact ID. When I change Load entity form to "Current scope" I am unable to get ID, which is logical i guess, however my question is : How can I get the current node id when using form?
I am trying to use parameter from URL, but I am not sure how to configure it in views. When i tried anything like :"/form-field-verification-test/myparemeter=3651
" the view was not displayed :(
So I believe once I can get the ID from URL I will be able to complete my task...
Any help here?
Note: Once I enabled debug, I can see error : Access denied to Build node from submitted values (Activity_0lyc17w) from ECA Validation
so basically it fails at the begging, but why such access is denied?
HI shenron_segamag,
I am experiencing the same issue - it was caused by uninstalling business rules which have been used as "dependent field" based on this guide here : dependent-field → , so I had to install it back, however business rules are not D10 ready and are replaced with ECA → .
For D10 it would be better to achieve the same with this module dependent_fields → and this guide: guide
In my case for every content type where such "dependent" business rule entity reference is being used I am unable to edit/add once bussines rules module is not available. In content which does not have such rule everything works as expected. So looks like similar or the same issues to me.
Maybe it is different case, but at least it can help anyone else who tries to migrate from D9 to D10 and deleted all business rules but forgot to get rid of rules configured in views as entity reference.
Hello,
I do have the same issue. I just installed drupal (clean) so I do not have any other date modules and still the same issue.
+1
Can anyone provide the fix ?
Hi apmosooner, is there any progress?
I would appreciated the patch.
Thank you
I have reopen issue here 3469612 🐛 Hide block/view if No results behavior Active as this one cannot be reopen.
Thank you. I did not know that dependency can be disabled in settings.my bad.
I am changing priority as I am experiencing the same and it created huge critical issue when I tried to remove it in second content type where it should not be copied.
The only way how to fix it now is to do a rollback.
+1 I have got the same issue.
I am not using Inline Entity Form and I do not have installed it.
In my case I have used dependency to field "B" and then I reused this field in another content type . However it takes from some reason dependency and it is displayed in the second content type and also to field "B" however such field "B" is not reused in the second content type, just the field "A" has been reused.
When I want to update that dependency now in the first content type I am getting this issue
But this
if (!isset($form['#conditional_fields'])) {
return;
}
Resolved the issue.
Please try to create a patch.
No it is fine now. If you want edit only yours use own instead.
+1 - It works fine with select list widget. However when you change widget to autocomplete - it does not work at all. It does not matter if it is required field, or visibility or anything else - it looks like autocomplete widget does not work at all!
much appreciated.
Hello,
Let me understand you better. It is not clear. I am using this awesome module for more >4 years and i have used a lot of different use cases.
However I am not sure about your issue.
Can you provide step by step to reproduce the issue and better describe it + add some printscreens?
Hi,
Read only field is always read only. But there are a lot of cases i need read only only for some roles, and some of them have to have writte one.
For example project name cannot be changed once created but PM needs to see it so it is clear he is updating the correct one. Or project start date he needs to see it in edit mode but he cannot change it - for this case read only is good enough but sometimes project name has to be changed or other project settings by program lead which has different role.
That's why this feature is awesome and should be implemented to prod version.
Hi devkinetic
It sounds good. Would you be able to provide a patch?
Hi dcimorra.
It looks like as duplicate to 3383149 🐛 Simple cron log should not log non scheduled jobs. RTBC
What do you think?
Thank you @sgohil1,
You have saved my day. The patch #3 works fine for 2.0 version also.
@Manuel Garcia, I do not agree "
but it would no longer be an accordion.
. It is still accordion, but previous one is still open, until you click on it and make it collapsed again.
However by default this option is also disabled so it is always accordion and who does not need ,simply won't enable it.
Thank you for your answer.
It will be a big help help if your customer would allow you to publish such an amazing feature so community can use it.
Maybe one day, much appreciated.
Hi
What is the difference between this module and entity extra one?
This one is awesome but have never used tha one you have mentioned.
Any plans?
+1 need the same feature, export multiple data exports at the same time to one file.
Does it mean there is any progress?
Bingo!. Finally.
It sounds like maybe having them present before the module is installed may prevent them from being recognized.
That is exactly the issue. It seems every time when you want to add/remove column you have to comment hooks out - enable module and later uncomment and run update.php.
Thank you
Yes i have also mentioned that in my previous answer. Not sure what i am missing here. I have spent hours to make it work already:(
Thank you..
Does it mean I just need 2 following files :
custom_field_updates.info.yml
and
custom_field_updates.install
with code:
<?php
/**
* Adds the "port" column to the "field_circuit" field storage.
*/
function custom_field_updates_update_10001(): void {
/** @var \Drupal\custom_field\CustomFieldUpdateManagerInterface $update_manager */
$update_manager = Drupal::service('custom_field.update_manager');
$update_manager->addColumn('node', 'field_circuit', 'portx', 'string');
}
Because I just tried and enabled module ,run update.php and cleared cache but I don't see any difference. Still when I visit field_circuit I am unable to see portx field item there.
I also tried to remove already existing "decom_id" item from field_circuit but also once I enable module (custom_field_updates.install) with following code of , nothing happens :
/**
* Remove a column from custom_field.
*/
function my_module_update_10002(): void {
/** @var \Drupal\custom_field\CustomFieldUpdateManagerInterface $update_manager */
$update_manager = Drupal::service('custom_field.update_manager');
$update_manager->removeColumn('node', 'field_circuit', 'decom_id');
}
Hi apmsooner,
Can you help me with this a little bit.
I do really need to add additional column to my existing custom field.
Name of custom field is "field_circuit"
and new column machine name should be "portx" of string (255)
1. I have created custom_field_updates.info.yml
2. I have created custom_field_updates.install as follow :
<?php
/**
* @file
* Install file for the custom_field_updates module.
*/
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\Entity\FieldConfig;
/**
* Implements hook_module_install().
*/
function custom_field_updates_module_install() {
$entity_type_manager = \Drupal::service('entity_type.manager');
$field_storage_config = FieldStorageConfig::load('<strong>field_circuit</strong>');
// Check if the field storage configuration exists.
if ($field_storage_config) {
// Create an update hook to add the new column.
$update_hook = 8001;
$entity_type_manager->getStorage('update')->create([
'id' => $update_hook,
'announce' => 'Add "port" column to "<strong>field_circuit</strong>" field',
'execute' => 'custom_field_updates_update_' . $update_hook,
])->save();
}
}
3. I have created custom_field_updates.update.php as follow:
<?php
/**
* @file
* Update hook for the custom_field_updates module.
*/
use Drupal\Core\Database\Connection;
/**
* Adds the "port" column to the "field_circuit" field storage.
*/
function custom_field_updates_update_8001(): void {
/** @var \Drupal\custom_field\CustomFieldUpdateManagerInterface $update_manager
*/
$update_manager = Drupal::service('custom_field.update_manager');
$update_manager->addColumn('node', '<strong>field_circuit</strong>', '<strong>portx</strong>', 'string', ['length' => 255, 'machine_name' => TRUE]); }
When I enable module, i still cannot see new column in field_circuit and also in database. (I also tried with 9001 instead of 8001)
What I am missing ?
is there any progress?