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().
Related
I'm new using Django and i'm using AuthAll to login/logout, the problem comes when i try to edit the template of the original form. I've created a the templates but i want to change the form with the inputs, originally there are no inputs just "{{form}}" line 38 . Is there a way to access to that inputs and change the style? Thanks!!
I actually dont want to create views, i really want to use AuthAll and just change the style of the 2 inputs. I tried searching where its created the form but i think its automatic.
I am a legal ops specialist working in a law firm with an interest of coding but have no practice lately. (I had python course during my studies but that was years ago)
Therefore I may be asking a very easy question, because I used an existing template and modified it for our process, however because of my lack of information on the topic I can't find the cause of the problem we are having.
So this is the template I used and the guide about it.
The problem is, when i filled the form any send a mail to the approvals it doesn't fill the answer template(docs) so the e-mail I receive comes as following;
table in the email template which is supposed to be fed from the google sheet
Which is basically the names of the google sheets columns, not the value in the cell. I believe the problem might be about the following piece of code;
// We start with the doc template HTML body, and then we replace
// each '{{fieldName}}' with the row's respective value.
let emailBody = headers.reduce(
(result, fieldName) => result.replace(`{{${fieldName}}}`, row[fieldName]),
docToHtml(templates.get(emailTemplate || action))
);
OR, because I couldn't manage to link the table in the google docs template with the answer sheet and I don't know how to do it.
Any kind of help is appreciated, I'm very cold and lost out here.
Edit1: Screenshots of the answer sheet and related part of the code.
answer sheet - columnsconst part of the code
Edit2: I added a screenshot of the template provided by Google. You can see that there is a link between the template and the answer sheet. I couldn't manage to restore such link when I changed the google docs template. Google docs template
After a lot of testing, as strange as it sounds, i have discovered that the main issue is the font type.
Also, it appears not possible to use a placeholder more than 1 time on the same email.
The evidence i have is that, by using a text editor to create the placeholder, i set ALL of the values in the doc row to {{Name}}, and in the Form Responses i set the name value to 1000.
The first 1 worked, then i typed over the second value with a different placeholder, and it began to work too.
So, you should recreate all the placeholders in a text editor, then copy and paste them onto the doc.
I have created a google form which I would like to convert to a template. The objective is to to distribute this template to other people so they can amend the form as they see fit. I also need these amended forms to sit inside a directory in the google drive.
How can I construct a google script to convert the original form into a template?
Thus far I have
var form = FormApp.openById('asdfasdfasdfasdfasdfasdfFORMIDGOESHEREfasdfasdfa');
I am stuck on how to take this form and now convert it to a template.
If you want to get the whole form and then transform it into a template to modify it at will, it is not feasible. But instead, if you want to get certain elements and modify them or create a new form using Apps Script you can check the Class Form, which gives you several methods that will allow you to insert or removes elements.
I have several forms on my website, and currently working on replacing these forms with Netsuite's forms.
To do so I create an html template for each form, using Netsuite's nl tags.
The requirement is to save the submissions of each form separately, but I don't know how to make it appear under a certain list, everything goes under 'leads'.
I may be missing something since I'm not entirely familiar with Netsuite's terminology regarding lists,cases, etc.
NetSuite already has Case, Customer and Email forms and if you have separate list then you can create Custom record and use online form under that record and public that form so it will be stored separately on your custom record.
Hope this help.
Regards,
Mayur
I want to create a HTML form . User will give input and the data will save in excel sheet.
Please support as soon as possible.
Thanks,
Joydeep Karmakar
you will need to include Php with this form not HTML only because you should use PhpMyExcel to create that excel sheet and this site will help you to deal with PhpMyExcel functions PhpMyExcel-Documentation
and to create that HTML form you should try this tutorials W3schools