Menu

Setting the value of a hidden field in a form

Anonymous
2002-03-11
2002-08-15
  • Anonymous

    Anonymous - 2002-03-11

    I am getting an exception while setting the value of a hidden field inside a form

    Exception: com.meterware.httpunit.MissingParameterValueException:

    Does any one know if this behaviour is supported by HttpUnit ?

    Thanks,
    Karthik

     
    • Paulo Eduardo Neves

      Some info about hidden fieldes hidden it in the release notes:-) . Maybe it should go to the FAQ?

      Notes:
          1. Hidden fields may not be modified through the setParameter call if parameter validation is enabled, since they
             cannot be modified through normal user interaction (in the absence of JavaScript). The getScriptableObject call
             provides a way around this.

      And also from the release notes, the solution:

      3. It is now possible to set the value of a hidden field in a form using a mechanism which will support scripting
                    in the future: form.getScriptableObject().setParameterValue( fieldName, newValue )

       

Log in to post a comment.

Auth0 Logo