Mailchimp: Customise fields in profile update form - html

I am trying to create a customised 'update profile' form for mailchimp subscribers that will allow them to opt in or out of a specific group and edit a couple of their profile fields without seeing their entire profile.
I can see how to edit the visible fields on a signup form (by changing the html code on the embed form), but I am unclear as to how to edit a 'profile update' form. There is only embeddable html available for signup forms, not profile update forms.
Doe anyone know of a solution to this? Does it require using he mailchimp API?

At first I tried to use Mailchimps partially generated code to write the 'update profile form', however, it got ugly and I used bootstrap to make a beautiful form.
Go to 'Lists',
click on the 'List' you want to make form
click 'Signup forms' from the menu
click 'General forms'
Go to the end of the form, and click 'advanced mode'
It then will reset everything (if you had made a form using drag and drop), 7- and give you a partially created form.(for this you must be a paid customer)
After this, you are presented with a choice of different types of forms like
Signup form, Signup thank you page, update profile form, unsubscribe form etc.
Just click on the type of form you wanna make.
You can use any of your favorite editor to make the form using bootstrap and simply paste it into the Mailchimp's editor and it works perfectly. Just remember to put the correct merge tag in the email template like |update_profile|. You can even use javascript, if you need it.

Related

Change form palette via google scripts

I need a help. I am using Google App Scripts for creating Google Forms. How I can change form's color/palette?
I tried to find here https://developers.google.com/apps-script/reference/forms/, but nothing found.
For the moment you can't, FormApp works with the first version of Forms, so for the moment no templates available programmatically.
Last news on the subject here
I was facing the same issue here and found a workaround: create a "Template Form" with the proper theme you want, then you make a copy of it and do your coding to the new copied form.
The problem is, if you want to custom each form with a theme, it would need several template forms, and the code should be able to select the correct template. However, this is not my case. Here is a sample code:
var file = DriveApp.getFileById('your-template-form-id').makeCopy();
var form = FormApp.openById(file.getId());
Just make sure you remove the single question that is created within the template form if you're adding questions dinamically, else, add the questions you need.
Good to note that once you generate a form programmatically, you can then edit it just like a regular form. You get the link to the editable page from form.getEditUrl().

How to add a "subscribe to newsletter" checkbox to existing form?

I've got a basic contact form that asks for email address and a message, which is then emailed to me. I want to add a checkbox after the email input that gives the option to subscribe to a newsletter as well. I can do the form, I can do a newsletter sign up, I'm just not sure how to combine the two. Any ideas?
Edit: To clarify, I'm planning to use a basic html form. I was hoping there'd be someway to combine that with a mailchimp or phplist newsletter signup.
You need an onSubmit() action with a method - generally post, and you'll probably have to use PHP and link it to that page so it knows to go there to process the action =}
in that page is where the clever stuff will happen like subscribe the user.
(Connect to the DB, add the email address to said table/column etc...)
Unfortunately this is not something I can just give you a snippet to insert - it'll have to be completed your side.

Auto-populate form via URL, then submit?

I have working the auto population of this form: http://getpocket.com/save
I'm using it rather than the API so that it works when users are logged into Pocket on the same browser as my website.
However, it's not a good user experience to then have to click 'save', so how can I "automate" that?
I won't show my code, because it essentially is just to generate a link of the form:
http://getpocket.com/save/?title=thetitle&url=encodedurl
It populates the form fine, but how can I submit? I tried apending &save and &submitand then each of those =True, in vain. Is the issue that the save button doesn't have a name= field, which is what's used to hook into the title and URL fields?
EDIT: Just to be clear, I didn't have any malicious intentions, only to save articles to read later on click of a button.
If I find the time I'll have a look at the API.
Luckily this is impossible (on Pocket and most sites) due to cross site forgery request protection to prevent exactly what you are trying to do.
A token is set in the form and together with session information for the user on pocket (or any other site that uses csfr token protection) it will need to form some sort of secret hash. When the 'save' form is submitted the combination of these strings will be checked and normally new strings will be set. Because there is (practically) no chance that you will be able to predict the token form the form itself and have no real way of manipulating the session hash, you are out of luck. And we are all very happy for that :).
Otherwise you could make links on other sites that would delete your whole database when you happen to click on them, etc.
In short: You can't.
On any form without csrf protection you'd have to target not the url of the page with the form, but the 'action' of the form. You can see this action by inspecting the form with your browser's DOM inspector. But, as I said, csrf protection will prevent this from working most of the time.
http://en.wikipedia.org/wiki/Cross-site_request_forgery
https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)

Add an html checkbox in OTRS ticket submit page

I'm new to OTRS and I have to add an HTML checkbox with some text in the ticket submit page. Essentially, I need the user to accept a privacy statement (clicking on the checkbox) before he submits a new ticket. Hence, the submit button has to be enabled only after the user clicks on the checkbox. How can I do this?
I know HTML, but I don't know OTRS architecture so I can't figure out how can I modify HTML pages.
In Kernel->Output->HTML->Standard I've founded HTML templates (*.dtl), but:
I don't know which elements are part of ticket submitting page;
I don't know if I need to modify an existing template, adding HTML, or to create a new template (in this second case I think I should modify some perl module that call the layout, but which one!?!)
I'm trying to open .dtl files to understand which I've to modify, but Firefox can't render them correctly; how can I open them?
If you want customers to accept a privacy statement you don't need to code.
You can simply go to Admin > SysConfig > Framework > Frontend::Customer and activate the CustomerPanelPreApplicationModule###CustomerAccept module, and the InfoKey and InfoFile values. When the customer logs in the text in the InfoFile is displayed and the customer needs to accept this. After accepting the InfoKey is stored in the User Preferences. This way the system will not bother asking permission to the customer again, and if you might change the policy you can change the key as well, displaying the message when needed.
For your questions on .dtl files: these are plain HTML files, but different blocks are rendered by the files located under Kernel/Modules.
If you want to modify the page that is used for submitting new tickets, it's this file:
CustomerTicketMessage.dtl. You can edit these files with any text editor.

How should i get an email when i submit the request form / submit form through html

i am working on a submit form in my html page. When i click submit button, i should get mail in my inbox.
So what all the procedures, i need to follow to get the output.
You need to use a server side language like PHP / ASP.NET etc. Then:
User submits form.
Retrieve the submitted information.
Send an email using the email functionality specific to the language you decide to use.
You haven't given much so this is only an outline of what you need to do to get going. You can use Google for the various areas you need to implement.
Instead of using any server, is there any plugins which can be useful
to get my output. – Bharadwaj
I think this might do the job for you http://www.emailmeform.com/
I've never used it, but it looks like a website that hosts the form for you and emails you the results. You'd just put the form html on your page and let them do the rest.
Hope that helps.