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.
Related
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 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().
I am new to HTML and still trying to understand some concepts. Here it is one that I do not understand at all. After trying HTML form I noticed that if I have a form with attribute name I can access that form the following way document.attribute_name or document[attribute_name]. However if I try to do the same on a div for instance, it does not work. Can somebody please explain me why is this so.
Also, I was wondering if it good practice to use a form when using AJAX. Let say that I have some fields inside a form but I am using ajax and the form never is "posted" as I am using AJAX to change field's contents.
Thanks in advance!
Usually a form has the name attribute in order for you to be able to pass a value to a PHP/ AJAX script.
When writing THE FORM :
<FORM action = 'addDetailsToDatabase.php' method = 'post' >
<input name ='myName'>
<button type = 'submit'>
</form>
When you submit this form it will post the input field value that has the name attribute 'myName' to the addDetailsToDatabase.php script. So now whatever has been entered and submitted in the input you can use in your PHP script.
TAGS do not generally have a need for a name attribute. (I am saying generally need just incase theiris some library out there that uses this I have never seen a name attribut on a div tag.
The best way to get a div is to get it by ID . document.getElementByID('yourdivid') - Javascript.
Your div will look like this
You can use AJAX to post a form to be be run by a PHP script and this has the added benefit of the whole page not being refreshed.
Anwsering the second part its hard what you are asking. With Ajax you can make your page as dynamic as you want
You can select from the database and echo wherever you want the options are limitless (almost). The best thing to do is to learn HTML = SIMPLE Learn CSS =SIMPLE. Then learn some simple JQUERY or javascript. If your dealing with forms and databases learn how to post a form to PHP script and store in a database and then retrieve using the select statement (prepared statements will set you up for years to come try and avoid old SQL tutorials)
Once you get this learn your AJAX to fill the gaps
I would like to know if there's a way to customize the email HTML body contents when submitting an Ektron HTML form.
For example, a form is submitted and the form data is emailed to john#doe.gov. Upon opening the email, there is a table containing the data from the submitted form. I want to know if there's a way to modify the HTML table which was generated for that email.
My goal is to experiment with some CSS to force word-wrapping in the table so lengthy textarea-input data will be wrapped appropriately.
I've never tried customizing it, so I don't know if there are any "gotchas", but these files look promising:
/Workarea/controls/forms/DefaultFormEmailBody.xslt
/Workarea/controls/forms/template_FormDataDisplay.xslt
/Workarea/controls/forms/template_FormFieldValue.xslt
The table is generated in "template_FormDataDisplay.xslt", and the individual table rows are generated in "template_FormFieldValue.xslt".
The usual "I want to modify something in the workarea" warning applies: Make backups of any file you change, and know that installing an upgrade to Ektron will overwrite any of your changes.
Are you using php? Because you can edit the way that email looks once you open it. This is an awesome tutorial:
http://tangledindesign.com/how-to-create-a-contact-form-using-html5-css3-and-php/
I have a models.py file where i have a textfield
models.py
class xyz(models.Models):
abc=models.TextField()
I am using html form to save the data for the abc field.
The problem is that if i enter the data in multiple lines in the form and try to display it, the whole matter is displayed in a single line.
So what is the error?
Is it in the models or what?
Thanks in advance.
The user enters a plain text, and than you are trying to show it as HTML. these are different formats.
There are a lot of possibilities, the simplest one is to let the user enter HTML and than everything will work as expected.
To do this, use some HTML editor like tinymce
Other solution is to use some markup formatting