I have two user types in my application. User 1 is admin. User2 are some companies. I have to display a drop down for user1, while I have to by default show the respective company name to the user2 when he tries to use one of the functionalities.
For Admin..when he doesn't chooses any item from drop down..all companies are selected. And for user2 only his data..
How can this be done? In form I tried putting the validations..but it didn't work. Then I tried with it's corresponding phtml file..there also it didn't work. May be I am confused.
Can anyone suggest something on it.
Thanks in advance.