Stateless forms, custom button, on click, not able to modify any form value

Stateless forms, custom button, on click, not able to modify any form value

Hi,

Using a custom button in a stateless form I am not being able to change the value of any field in the form through the "on click" script.

Say for instance the script below. I am trying to clear the content of a pick list. The script does nothing at all. I have tried other type of fields like a simple line of text and still not able to make any change to it. If this is the case then what's the purpose of the custom button??


  actions
    {
   
        Clear
        (
            type  =  button
            displayname  =  "Borrar"
            on click
            {
                input.Categorias.clear();
            }
        )