Hi Alejandro!
I need a little help trying to change a crud generated textfield’s value inside a
addValueChangeListener
the setFieldCreationListener
won’t work inside it.
Example
//Inside constructor of view
crud.getCrudFormFactory().setFieldProvider("name", () -> {
TextField tfURL = new TextField("url");
tfURL.addValueChangeListener(e -> {
String urlToLook = tfURL.getValue();
result = //fetch something;
crud.getCrudFormFactory().setFieldCreationListener
("inputTochange", field -> field.setValue(resul));
});
return tfURL;
});
How can I cahnge the value of an input field inside a listener of another field?
Thanks beforehand.
And great work!