Unable to retrieve form values in Bean Shell using hash variable
Confluence User - 22 Dec, 2017
Hi All,
I have a select box with Options Binder as 'Beanshell Form Binder'.
I am loading the options using Beanshell script from a database table which is working fine.
However I need to filter the database values based on a form text field (value= ABC) and I tried using below code:
String str = "#form.formtablename.fieldname#";
LogUtil.info("","("+str+") - my text field value");
Current Result : String is getting printed as :
(#form.formtablename.fieldname#) - my text field
Expected Result: String should be printed as below:
ABC - my text field
Can you please let me know why the text value is not getting displayed.
beanshell