Hi! I would like to have a new e-mail window to pop up when I change value on an attribute. Does anyone have any suggestion how to fix that?
<INPUT NAME="test" onChange="popup(...)" />
where popup would be a javascript function to create the pop-up window
or if this doesn't help, tell us more specifically what type of attributes, language, etc.
Your question is pretty vague but I suspect you want.
<input onchange="window.open('mailto:you@wherever','myEmailWindow');return true">
Which may or may not work depending on the users popup-blocking settings.
There are a couple solutions I'd recommend, based on your comment that you added.
1) The easiest might actually be to add a field to the serviceactivity entity called "Email comments" or something, and edit your workflow to include the contents of that field as well as the rest of the content that is currently in the email.
2) You can do what you originally wanted and open up a new email activity, but there are some gotchas:
- If the environment has IFD enabled, the url is going to change between that and a normal CRM deployment, so your javascript will have to account for that.
- The fields that you currently have populated on your workflow (to, from, content) cannot be set from the url. You will have to add some more code to the onLoad event on the email entity to call web services (either through javascript, which is kind of a pain, or setting up custom web services and deploying them to the CRM server) and populate the fields.
#
1 is going to be a whole lot easier to get pretty much the same end result that you were looking for.