Questions tagged [newforms]
19 questions
31
votes
10 answers
Add class to Django label_tag() output
I need some way to add a class attribute to the output of the label_tag() method for a forms field.
I see that there is the ability to pass in an attrs dictionary and I have tested it in the shell and I can do something like:
for field in form:
…

ashchristopher
- 25,143
- 18
- 48
- 49
5
votes
2 answers
React: input validation
I recently started working with React and I faced the problem with inputs validation. For example, it simply implemented in another framework as Angular.js via directives.
After some researching I found
newforms library, looks like the best…

Vladyslav Babenko
- 1,349
- 18
- 26
1
vote
1 answer
How to code a button to enter a value in a textbox on another form
I have form 1 with 4 buttons when I click a button it opens a new form. Each button opens the same form but I want the corresponding button to enter specific values into two different text boxes on form 2.
Form 1 Button A; Form2 textbox1= 400…

melonkey
- 13
- 5
1
vote
1 answer
Move smalldatetime from databound DGV to new form textbox and change format
I am currently working in windows form application in visual studio express for desktop. I also have an sql back end. I am trying to pull a smalldatetime from a DGV that has been loaded from an SQL table and then move it into a textbox on a new…

Cheddar
- 530
- 4
- 30
1
vote
2 answers
react newforms, set input value and focus field
So what i want to do is to reset the username field's value to '' and focus it (upon i get an error sent back form the server).
// get the form ref
var form = this.refs.loginForm.getForm();
// reset username field value (this actually gets updated…

aegyed
- 1,320
- 3
- 20
- 39
1
vote
1 answer
Anyone know an up-to-date (September 2009) example of file-uploading in Django?
UPDATE : thanks to posters below, it's clear that the official documentation is up-to-date. Best to read that carefully rather than skim a bunch of other pages that turn up in Google.
I keep finding examples and snippets for uploading files in…

interstar
- 26,048
- 36
- 112
- 180
0
votes
1 answer
PYTHON SQLITE3 DELETE FROM LIST
I want to delete data from selected in ListBox. I tried everything but it's not working. I tried in simple file. It worked. I wrote same code here but it's not working. I'm stuck since two days. Please help.
from tkinter import *
import sqlite3
from…

Mr.V
- 11
0
votes
1 answer
Script to update the value of a choice field
On my SharePoint calendar I have a choice field called "status". The default value for this field is 'Pending Approval' and that needs to remain the default value.
I would like to update the status to "Approved" when an event is added through the…

Joe Cambareri
- 115
- 2
- 13
0
votes
1 answer
Open new tab onclick JS event using handler ashx
I have a login button with onclick event...onclick = "login();"
I successfully logged in ...but I wanted to open new tab instead.
This is my javascript:
login = function() {
if ($("#UserName").val().length == 0) {
return;
}
if…

porsche
- 55
- 7
0
votes
2 answers
Customizing default sharepoint form in powerapps doesn't save after publishing to sharepoint
Previously I was using a sharepoint default form to send a request to my client. I was always able to fill all the fields in default form(fields being appointment type, reason, requested date, due date, and a person/group field called Client) and…

Sahil Tiwari
- 159
- 2
- 12
0
votes
1 answer
SharePoint Custom List Form doesn't validate required fields
My Story:
I had to customize the page NewForm.aspx, so I hidden the default ListFormWebPart and added a Custom List Form [DataFormWebPart] using SharePoint Designer.
My problem:
If required fields are empty, SharePoint now triggers a beautiful…

Bruno
- 1
- 1
- 2
0
votes
1 answer
Sharepoint 2013: How to change date format of DateTime textbox in NewForm/EditForm?
I have a DateTime Field "Date1" in my list. I need to set its format as "DD-MMM-YYYY" (eg: 29-Mar-2017). I achieved doing this on Display form using the FormatDatetime function in XSL:Select.
I need to change it on New/Edit forms too, when date is…

Sanjana Chhabira
- 1
- 5
0
votes
1 answer
pass dictionary to new form c#
In my main form I create a new form:
private void buttonCreatePositionForm_Click(object sender, EventArgs e)
{
f3 = new FormPosition(textBoxFiltermachineid.Text, textBoxFilterPositionFile.Text);
f3.Show();
}
I also use a dictionary that is…
0
votes
2 answers
Abstracting the superagent
Our application consists of nodejs, express, reactjs, and newforms.
To make rest calls we are using :
var RestClient = require('superagent-ls')
And we are making rest calls like:
cleanBirthDate(callback) {
var {birthDate} = this.cleanedData
…

Nikki
- 97
- 10
0
votes
1 answer
Label position in React Newforms
The default position is over the fields, but I want it right from it.
I tried to hide the labels and use s to show text besides of the inputs, but newforms crashes when I add normal text into

K..
- 4,044
- 6
- 40
- 85