You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem
I need to set an "issuance date" to today's date as soon as the user has filled an amount field for an invoice.
I do so with a javascript:
const issuanceDateInput = container.querySelector('.issuance-date-input input[type="text"]');
amountInput.addEventListener('change', () => {
if (amountInput.value !== "") {
issuanceDateInput.value = formatDate(new Date());
issuanceDateHiddenInput.value = formatDate(new Date());
The calculated value is displayed on the browser but the value is not in the post message sent to the server
Do I have to trigger some event?
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
I am expecting the value displayed by the browser to be part of the post message sent to the server
Console errors
No error on django console.
No error on JavaScript console.
Paste-bin
The page is showing up but the date-picker calendar is not. The paste-bin link
of the HTML source of the page is http://...
Setup Information (please complete the following information):
Describe the problem
I need to set an "issuance date" to today's date as soon as the user has filled an amount field for an invoice.
I do so with a javascript:
const issuanceDateInput = container.querySelector('.issuance-date-input input[type="text"]');
amountInput.addEventListener('change', () => {
if (amountInput.value !== "") {
issuanceDateInput.value = formatDate(new Date());
issuanceDateHiddenInput.value = formatDate(new Date());
The calculated value is displayed on the browser but the value is not in the post message sent to the server
Do I have to trigger some event?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I am expecting the value displayed by the browser to be part of the post message sent to the server
Console errors
Paste-bin
The page is showing up but the date-picker calendar is not. The paste-bin link
of the HTML source of the page is http://...
Setup Information (please complete the following information):
[x] I have followed the configuration instructions and checked out the
common error troubleshooting page.
The text was updated successfully, but these errors were encountered: