ACS will not save my conditional expressions. I have created a newsletter email that each structure (article + image) has various dynamic conditions that will decide whether to display that structure based on profile data. For profiles that will not see a specific article/image (structure), I want to remove the extra spaces in the email. I created a condition using an expression if met should remove the structure so there are no extra spaces or placeholders in the final email delivery. However, it will not save. I click accept and save but the conditional express isn't saved properly. I was getting an error that was along the lines of "error with saving your thumbnails". Note, the system runs extremely slow. Why will my conditional expression not save but if I used the out of box simplified conditions it does save? Is this a system, config or user issue? Thank you!
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
@Skotmor Can you share the screenshot and condition?
Views
Replies
Total Likes
Hello Sathees,
Attached are details. Let me know what you think. I welcome any advice or ideas. Thank you in advance, Andrew
Views
Replies
Total Likes
Is there a reason to keep this structure?
You can remove this by going to the navigation tree in the email designer and removing it.
Also, the advanced expression that checks stateCode='QB' you mentioned can't be used in dynamic conditions.
<% if(context.profile.location.stateCode === 'QB') { %>
<!-- No Content -->
<% } %>
Additionally, you can have a visibility condition (located right side of the email designer), incase if you don't want to display the entire structure. Refer to this documentation.
Sathees, Thank you for the response. I do have a few more questions or issues related to this topic.
1- That I can tell, that visibility expression can only be done with limited fragments. Ie it only is available as an option for the photo in the structure in Col 1 and not the copy block in Col 2 within the same structure.
2- Unfortunately, the drop down for devise visibility does not have "don't show on any device". Instead the only options are "show on all", "on mobile only" or "show on desktop only". That would be ideally to simply select "don't show on any devices". Is there a way to configure this option by an admin?
3-Since my expression won't work above, is there a way to simply make the default "blank"?....meaning simply remove the structure as the default. For my needs, that would be the best, I currently have removed all content from the default dynamic condition in the example below. BUT, again, when the email goes out, the default will still display the placeholders spaces for that respective structure.
Please let me know what you advise. Thank you, Andrew
P.S. The copy block with the Test Message is just temporary....I will delete before the finals go out.
Views
Replies
Total Likes
Any addition thought Skotmor?
Views
Replies
Total Likes
@Skotmor Here are my comments,
1- That I can tell, that visibility expression can only be done with limited fragments. Ie it only is available as an option for the photo in the structure in Col 1 and not the copy block in Col 2 within the same structure. - Yes. Visibility condition applied at a structure level.
2- Unfortunately, the drop down for devise visibility does not have "don't show on any device". Instead the only options are "show on all", "on mobile only" or "show on desktop only". That would be ideally to simply select "don't show on any devices". Is there a way to configure this option by an admin? - No. Currently, there's no such capability available.
3-Since my expression won't work above, is there a way to simply make the default "blank"?....meaning simply remove the structure as the default. For my needs, that would be the best, I currently have removed all content from the default dynamic condition in the example below. BUT, again, when the email goes out, the default will still display the placeholders spaces for that respective structure. - With dynamic conditions, you can't remove the entire structure rather you can display different content within that particular structure component. I would suggest putting that at a visibility condition level and hiding the structure rather than using dynamic conditions.
Unfortunately, the visibility condition doesn't apply to the entire structure, only the image in the structure. So, I am clear, even though when setting a condition there is an "advanced mode" which appears to have the ability to set the condition based on an expression such as below, Adobe Campaign actually doesn't support the ability to use an expression? Why have the advanced mode? Or am I just using the expression capability incorrectly? Thanks in advance, Andrew
if(context.profile.location.stateCode.toUpperCase() !== 'QB'.toUpperCase()) { // Do not display anything } else { // Display the content }
if(context.profile.location.stateCode.toUpperCase() !== 'QB'.toUpperCase()) {
// Do not display anything
} else {
// Display the content
}
Views
Replies
Total Likes
@Skotmor I'm curious, did you try applying the visibility condition at a structure level when you have a 2:2 column structure like this? Is that not working? and also did you try to apply the visibility condition for both columns separately?
Views
Replies
Total Likes
But when select Col 2, the right col, that visibility condition disappears.
Same thing when I select the structure....there is no visibility condition.
My client wants each structure to have only one image + article combination as one dynamic condition. Which means if that condition isn't met, the default is shown which needs to be blank. The reason for this is in the day to day newsletter creator may not be done by an experienced ACS person. So from a copy writer's perspective, to be able to see all possible articles stacked without having to toggle between dynamic conditions by structure is ideal.
Example: (Note, the articles are placeholders for test)
Any additional ideas or thoughts on how I can do this? Thank you, Andrew
Views
Replies
Total Likes
I see that you're trying to apply the visibility condition at a column level. It should be either at a component or structure level. For your criteria, you can apply at the structure level.
Screenshot shows that the visibility condition won't be available when applied at the column level.
When it is chosen at the structure level it shows the visibility condition,
Hello,
Thank you for the response, but that is the issue I am running into. The "Visibility Condition" is supposed to be available at the structure level which from a UX perspective also makes sense. However, when I select a structure, it doesn't appear.
See below for example.
But what is interesting and doesn't make sense to me, is if I each component individually in the structure, I do see the visibility condition box. Which makes no sense if I can't see the visibility condition box at the structure level. This would also mean I would have to code each individual component (which could be 6-10) in each structure. If I had 10 structures belonging to 10 articles, that could be 100 conditions I would have to set. What is even more odd, if I just create a complelely new structure without duplicating a previous structure (ie create from scratch), I do see the visibility condition. So, I go back, what is causing the visibility condition box to disappear when I select the pre-existing structures that are already formatted?
Views
Replies
Total Likes
Sorry for all the posts on this thread. Originally, when I started, each structure had multiple dynamic conditions so the default having to be blank wasn't an issue because there were at least 2 conditions. However, to meet end-user requests, I switched to many structures with only one dynamic condition which brought about this issue with the default leaving blanks....And the visibility condition function disappearing. I think I may know the issue. Is it true that if you have enable dynamic content for a structure, the visibility condition function automatically is turned off? And if that is the case, then would I need to migrate the dynamic conditions I created for each structure to the visibility condition function disappearing - Correct? Given I would have to disable the dynamic content first, is there a easy way to migrate the dynamic condition logic to the visibility condition function without have to redo it manually? Please advice. Thank you, Andrew
Views
Replies
Total Likes
Views
Likes
Replies