Code
crud.getCrudFormFactory().setVisibleProperties(
CrudOperation.ADD,
“firstName”, “lastName”,“username”,“role”,“password”);
List roles=new ArrayList<>();
roles.add(“admin”);
roles.add(“user”);
crud.getCrudFormFactory().setFieldProvider("role",
new ComboBoxProvider<>(roles));
I want to add new fields “token”,“user id” if role selected is user.Or initially make the fields “token”,“user id” as disabled and later if he selects “user” then it should be enabled how to do this.
Please help. @knoobie