Expressionengine email form and channel entry tags - forms

Im wondering if its possible to have an email form and pass channel entry tags to it.
I have a field which contains the recipients="email" and I want to be able to change this per entry.
Paul
I tried to surround the email form with {exp:channel:entries}. This throws up errors.

Related

Place Autocomplete Address Form

I created a registration form for a website and I included the Place Autocomplete Address Form provided by Google to fill the Country, Province and City fields.
It works perfectly. However, I use Google Analytics and I have seen that a certain number of users leave the process before completing the registration, as if something went wrong and couldn’t complete it.
The form itself is quite simple, so I checked it with some possible errors.
It has several requested fields, so the form reloads partially to display a popup asking you to add the information or data in each case. The fields filled out correctly keep de information. All but the ones filled out by the Google API, which simply disappear. And I am not talking about the information added to them, the fields themselves are missing, removed from the code.
Any suggestion?
I created a registration form.
Some fields (Country, Province and City) are filled by this API:
Place Autocomplete Address Form
The code I used is on that page.
If you fill out the form and make any mistake or fail to fill any requested field, for instance, adding different passwords in the Password and Re-write Password fields, the form realoads partially displaying a message requesting you to fill them properly.
By them, the fields to be filled by the Google API are gone, removed from the code.
The problem is that when the user filled the, in the example, password and re-write password fields properly, another message popups requesting to fill the country, province and city fields.
Is it clear enough now?

Dynamic CRM - insert external hyperlink with dynamic parameters in Email workflow

I have a Workflow in CRM 2016 on premise that sends an email to a customer when an order is created. The email contains a URL link to external website used for scheduling. The problem is that the hyperlink in the email doesn't fill the parameters we are using from the CRM entities.
I tried several ways to do this. the first way was using the Insert Hyperlink when creating the email through the workflow. this creates the following tags:
<hyperlink><name>Pro Services Online Scheduling Portal</name><value>https://secure.website.com/ProServices?name={Ship To Contact(Order (Order))}&email={Email(Ship To Account (Account))}&OrderID={Order ID(Order (Order))}&Company={Customer(Order (Order))}&skip=0</value></hyperlink>
This correctly adds the hyperlink into the email but the actual link looks exactly as it does in value tag without the CRM values.
I tried just adding the link as plain text like so:
https://secure.website.com/ProServices?name={Ship To Contact(Order (Order))}&email={Email(Ship To Account (Account))}&OrderID={Order ID(Order (Order))}&Company={Customer(Order (Order))}&skip=0
This displays the correct URL with the correct CRM values like: https://secure.website.com/ProServices?name=JonDoe&email=jdoe#email.com&OrderID=ORD-123456&Company=FakeCompany&skip=0
However, the URL itself is still missing the values so if the customer clicks on the link, the incorrect parameters will be sent. It does work if the customer were to copy and paste the link text instead of clicking the URL but most customers would rather click the link.
I even tried used an HTML anchor tag but that also didnt work.
Has anyone else encountered this problem?
Any help would be appreciated.
Here's some blog posts that helped but still looking for answers.
http://dotnetskills-reenapatel.blogspot.com/2014/02/how-to-form-dynamic-hyperlink-url-for.html
http://www.magnetismsolutions.com/blog/paulnieuwelaar/2012/06/25/dynamic_clickable_email_hyperlink_dynamics_crm_2011_workflow
If you want to use hyperlink then you have to do something similiar to what CRM does for field Record URL(Dynamic).
You can create a new field on the entity say 'EntityName Hyperlink'. Then use plugins to set this value to the desired link on create event.
You can then use this field to create your hyperlink. We do something similair for our case entity we have field Case Hyperlink which i set on create event.
Then we insert it on outgoing emails like this
<hyperlink><name>Hyperlink</name><value>{Case Hyperlink(Case)}</value></hyperlink>
We ended up creating a custom workflow activity to add the hyperlink using SparkleXRM

How to send attachment with email in an ms access form

I was wondering would it be possible to create some sort of ms access form, where you would be able to upload any file and then be able to enter an email in another field, click a button, and send an email with said attachment to the entered email. So far I have the form created with an attachment field and below that I have a button and an empty field where the user can input an email that they would like to send the attachment to. My initial idea was to hard code the button to pull the attachment and send it to the desired email address using the .SendObject() function but i didn't find parameter for an attachment that I could send using the function.
:
In the highlighted box is where users can add any number of attachments and in the box to the right of the send button is a text box that would allow users to put in an email address that they would like to send it to.
If there is a better way of doing this with forms please let me know, I'm always up for learning new things.
You can interface with the outlook objectmodel to create a mailitem, then .send the message and .attach a file, but the file has to be accessible to the filesystem. If the file were embedded in access, you would have to export it out, then attach it. This link and this link should give you a good idea of how this process works.
If you don't have outlook available, then you will either need software that has a VBA compatible API, or you can use a webservice to post the mail, but both of those options are far to massive to talk about here, unless you can provide more specifics.
Edit since your edit:
If you can use Outlook, and you can just store the path to the file() in the attachments field as an array, then you an loop over the array with mailitem.attach to attach multiple files

Mailchimp use merge tags in link url

I am building a mailchimp campaign with a link to a custom form. I would like the fields of the form to be filled in with the info I have from my suscribers (first name, last name, company name, email...)
For this, I am generating custom urls with paramters for the link in the email. Those parameters are then filled in the inputs. The URLs should look like this :
http://www.example.com/custom_form.php?
fname=some_name&lname=some_name&company=some_company$email=example#example.com
The issue I have is in the mailchimp editor. I want to use merge tags to generate the parameter values according to each suscriber so my link looks like this in the editor :
http://www.example.com/custom_form.php?
fname=*|FNAME|*&lname=*|LNAME|*&company=*|COMPANY|*&email=*|EMAIL|*
This works fine except when for example the company name is in two words. The URL is broken and the parameters after the company name don't work.
How can I encode the merge tags for urls?
Try *|URL:COMPANY|*. See the merge tag cheat sheet.

Ektron Form including extra fields in Post email (Ektron 9)

I'm using an Ektron HTML Form on one of my pages for registration for an event. The Form sends an email to my client with all of the information that the user put in. However, the email includes extra fields with data that the client does not need, and they find it confusing. In addition to all the fields that the user filled out, they're also getting fields such as "cx", "cof", "EktFormId", etc. The client finds this confusing and doesn't want the extra fields, they only want to be sent the info that was filled in (or left blank) by the user.
This is a screenshot of the email that is being sent upon form submission. We want to prevent everything before "FirstName" from being sent. Does anyone know how to do this?
The best way will involve a bit more legwork on your part. If you have the HTML form post to an Action Page, then your Action Page can use Request.Form to pull in the fields you want and then send your own email.
See the documentation and look for section "Redirecting Form Data to an Action Page"