- Issue created by @atomi
- 🇩🇪Germany jurgenhaas Gottmadingen
We have been using that condition successfully before. Could you please provide us with a simple model that demonstrates the problem, ideally without any dependencies other than Drupal core?
- 🇭🇺Hungary atomi
An example model is attached.
Anyway, it can be solved with the "Tamper: Get string length" condition, but everything in the Drupal system should still work.
- 🇩🇪Germany jurgenhaas Gottmadingen
How did you export that model? What you should get when you use ECA's export is a
*.tar.gz
file, but not just a gz file.Anyway, I've looked into the model and the error is in the configuration of the
field_value_empty
condition. You're using[node:field_szoveg1]
as the field name, but that will replace that token with the value of that field. What you want to use in that configuration field is justfield_szoveg1
because that's the field name. - 🇭🇺Hungary atomi
By exporting in the ECA module.
As for the token: I tried without brackets, but it didn't work either.
By the way, it's confusing that even within a given rule, sometimes it's mandatory to put the token in parentheses, and sometimes it's the opposite.
- 🇩🇪Germany jurgenhaas Gottmadingen
Seriously, when you export from ECA, you get a tar.gz file.
What do you mean you tried without brackets? Can you let is know what exactly you out into the field "field name"?
This is not about tokens, it really asks for a field name.
- 🇭🇺Hungary atomi
I can only repeat that ECA Export gives me a .gz file, not a tar.gz. But for me it doesn't matter, it works, that's the point. By the way, I'm using the latest version of Drupal 10 and from ECA as well.
In the case of "Tamper: Get string length", a given field is specified between [ ] brackets and it works properly.
You claim that in the example model you sent, if you specify the given field without [ ], then your system correctly recognizes the "empty" and "not empty" states?
- 🇩🇪Germany jurgenhaas Gottmadingen
In the case of "Tamper: Get string length", a given field is specified between [ ] brackets and it works properly.
That field asks for a string, and the config field supports tokens. So, if you provide the value via a token, then of course you need to provide token syntax. Just as an example, the config could also look like `This is the [text] that should be measured.`. This is a string that contains a token and that would be replaced before calculating the string length.
You claim that in the example model you sent, if you specify the given field without [ ], then your system correctly recognizes the "empty" and "not empty" states?
I did not send an example model. And I did not say that you should just remove the brackets either. What I said was that you need to provide the field name in the config for that action plugin. The field name is `field_szoveg1` in you example model. That name is what that action plugin requires.
If you can't get that to work, please provide another exported model that we can review what's wrong.
- 🇭🇺Hungary atomi
Dear jurgenhaas, I wrote down dozens of ECA questions and problems, and I submitted them to Drupal Answers a few weeks ago, but they rejected the questions, they're pretty grumpy there). Where can I send them? And one request: it would be nice if the tutorial videos were uploaded to YouTube! Because there's a translation option there, but there's none at https://tube.tchncs.de/w/5cs5Du3579Nwau1m9Rv92G, and not all Drupal users speak English...
- 🇩🇪Germany jurgenhaas Gottmadingen
That last comment sounds unrelated to this issue, to be honest. Have you sorted the original problem with the latest help?
And when it comes to your frustration that you don't get the help you're looking for, you may want to keep in mind, that everybody offering help does that in their free time. They are not obliged to provide help, so your expectation may need to be adjusted a bit.
And when it comes to the videos, I will not publish anything on YT until they're going to respect our privacy and our laws. Until then, I'm sure you find other ways to get the videos translated.
- 🇭🇺Hungary atomi
I didn't complain that they didn't answer there, but that they deleted the questions. Before you speak, you should understand what I'm writing.
And as for free time: I also help others in my free time, so don't be disrespectful!
Have fun with the ECA user base, which is still only 7 thousand, compared to 140 thousand for Rules.
I wanted to discuss the aforementioned questions with the aim of helping in development, but this is no longer relevant. If you keep this attitude, ECA will sink, but that's not my problem! - 🇩🇪Germany jurgenhaas Gottmadingen
So, this issue is a support request about empty field values. The last comment on topic was #8 and I wonder if that helped to resolve the issue?