question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting values of hidden fields

See original GitHub issue

I have an issue with hidden fields inside a form element, I want to select the form in the editor and then change the values of the hidden fields by clicking on select boxes. I’ve added the select boxes to a new panel.

How do I find the hidden fields within the selected form component and then set their values? The hidden fields are not direct children of the form.

<form>
<div>
<input type="hidden" value="1,2,3">
</div>
</form>

I’m interested in discussing best practice solution to this problem. It might be the case that the values need to be set when the form is added.

Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
michaellwatsoncommented, Dec 20, 2017

Great stuff, grapesjs is amazing btw

0reactions
lock[bot]commented, Sep 18, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set the value of a input hidden field through JavaScript?
You need to run your script after the element exists. Move the <input type="hidden" name ...
Read more >
HTML DOM Input Hidden value Property - W3Schools
Get the value of the value attribute of a hidden input field: var x = document.getElementById("myInput").value; ; Change the value of the hidden...
Read more >
jQuery set input hidden field value with demo - Codepedia.info
How to set hidden field value in jQuery, Using .val() method we can set value. Example on button click assign textbox box to...
Read more >
How to set default hidden field values (and otherwise ...
How to set default hidden field values (and otherwise manipulate hidden field values)? · Typeform logic jumps · Typeform hidden fields.
Read more >
<input type="hidden"> - HTML: HyperText Markup Language
Value. The <input> element's value attribute holds a string that contains the hidden data you want to include when the form is submitted...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found