That's to be expected. It's a dynamic substitution when content may or may not exist. If that doesn't exist then CB Auto Actions just literally sees the string [var1_params_CUSTOM]. Only way to really work around that at the moment is check if it's literally equal to that using a regexp condition so it doesn't get substituted. Example as follows.I have also some issues with params in CB Activity. In an auto action trying to condition [var1_params_CUSTOM] is empty works if [var1_params_activ] really exists but fails if it’s not in the params. I have also tried with greater than, egal to or REGEX
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You're using the AFTER trigger. The activity has already been saved at that point. You need to use the BEFORE trigger or you need to call the ->store() function for var3 after making your changes.Can you tell me what i do wrong here ?
I've no idea what you mean by that. That should save whatever input is named "Activ" from the form POST data. Right click and inspect the inputs HTML and be sure your HTML is correct. You can use the network tool in your browsers developer tools to check the POST data being sent is also correct. Below is the auto action you need for this to work in activity edit. It's similar to the first auto action I provided earlier but adjusts the variables used and handles button state and previous value.This only save the old activ input and not the new one
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
That's because you don't have your substitution surrounded by quotes. Treat all substitutions as strings. Also do not apply htmlspecialchars there. Use the ->getString method as it applies string sanitization already.while I can only save the new data but not save the edited data with :
You need to call ->store() function on var3 after changing the asset otherwise it's not going to save your change.When using activity_onAfterCreateStreamActivity or activity_onAfterUpdateStreamActivity, I cannot update the asset with :
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.