How can I get the values inputted by a user in all the form fields, in the bean shell validator of a certain field?

Confluence User - 18 Jul, 2018

There's a note that says "Injected variables : Element element, FormData formData & String[] values" what methods do these classes have and what purpose does each method serve? and can I use them to retrieve the values inputted by a user to the fields of the form being submitted?

Clarification: I'm not only trying to get the value of the specific field that I'm using a bean shell validator on, but also all of the other fields of the form submitted

validator;beanshell;field;value

1


18 Jul, 2018
confluenceUser
confluenceUser

Hello Sarah,

You can refer to this guide for more information --> Bean Shell Programming Guide - Form Validator. There are sample codes for your reference.

You can make use of the injected variable formdata to retrieve values from form fields in the form.

Hope this helps (smile)

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print