I'm till a Seblod beginner so please bear with my questions, I do try to find my answers on the forms or tutorials but sometime I strike out. I would be most appreciative on how to best accomplish this task.
I have a content type where I want to put the choice of 3 different default messages, or leave blank. I'm thinking this would be a Simple Select to choose default message, but I'm not sure where to store the HTML string (value) of the field. I could put it into the select field text=value format but what if I wanted a bit more eleborate HTML, perhaps with a link or the text from a variable on the form. Or I guess I could make a new content type for the messages, but this seems like overkill. I only have 4 possible choices.
What I would really like is a default sentence (value of the select) that would be:
"This is the default message for getValue('art_title')".
"This is the other default message for getValue('art_title')".
"This is the last possible default message for getValue('art_title')".
or no message
So I guess my question is two part.
1) where could I store default html messages
2) how can I put a variable in the message so it will pull the article title into the text of the message.
First I want to say thanks for all the great help that you share here. Send me a link to your beer fund and I'll contribute!
Second, I think I see where you're going with your first post and based on your second post I see I could add some clarification here.
What I was hoping to accomplish was a way that I could come back and edit message 1 (or 2...) at a later date and that all articles that had message 1 would show the current version (most recently edited) of message 1. So I guess the answer to your question is no, I don't want to store the message, just a reference to it. That the point of this is to create a way to come back and easily modify all of the instances of a message option by just editing the source.
So I think I've got this understood and working. This video also really helped with understanding conditional fields.
My only question though is that I'm trying to control the visibility of the free text field when the user is looking at the content item on the front end. As far as I can tell the conditional fields are only effected in the form views. there isn't a #5 box for conditional fields when looking at the CONTENT view.
Ok, I'm trying to understand both of these approaches but I think they're over my head. I'm surprised this task ends up being so complex.
What about reconsidering the idea of creating a new content type called "messages" and using a module position that shows a list type to show the message in the content. I think I've seen a video tutorial on something similar.