1
0
-1

I need to select user from popup select box and get username to find email by using #user.username.email# 


I try hardcode #user.cat.email#  is worked. i can get cat email.




but try like this  

var userName = FormUtil.getValue("commit_empno");

alert("#user."+userName+".email#") ;

I get this #user.cat.email# string , hash variable is not worked.


please help.

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      thx for your answer. i will try.

        CommentAdd your comment...
      1.  
        1
        0
        -1

        I don't think you can concat the hash variable as per your example because you will break the automatic parsing of the hash variable if you separate/break up the hash. If the username in selectbox is already saved to the database, u can retrieve the user's using email using #user.{form.table.username}.email#.

          CommentAdd your comment...