Modify form fields though button

Modify form fields though button

Hi, I’m trying to create a page with a form and a button, when the button is pressed, I need to retrieve the fields from the form and modify them through a deluge script.

Is this possible ?


I realized I could use stateless form, this allows me to get the form input values, but when I try to set the inputs it doesn’t work. 

example: 

// get input works
foo = input.formFieldName; 

// set doesn’t 
input.formFieldName = "bar"