Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

125
Views
Drupal 8 form value not changing with javascript

I have a drupal form, which contains a title, username, email, ... and I want the user to be able to insert some values and submit the data. My problem now is that when submitting the form my values are unchanged. Currently I am loading the data in with javascript:

document.getElementById("response").value = JSON.stringify(dataToSend);

The weird thing is that I see the value being changed but not when submitted. This is how my form field currently looks like: drupal form

When submit is pressed the passed value will remain response_placeholder Anybody that can help me?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

SOLVED: remove the #disable: true line

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!