To have a confirmation page of a form,
where the user used several FormItems like TextItem and SelectItem:
If the user clicks on save, we need to change the type of TextItem and SelectItem to StaticTextItems, so that the user is not able to use the items and see the values like in a list, without having a disable view.
On initialization you can achieve this with
myField.setAttribute("editorType", "StaticTextItem");
but not afterwards, when the user clicked on save.
I tried something like
But this doesn't take any effect.
Do you have a solution in mind?
Thanks
where the user used several FormItems like TextItem and SelectItem:
If the user clicks on save, we need to change the type of TextItem and SelectItem to StaticTextItems, so that the user is not able to use the items and see the values like in a list, without having a disable view.
On initialization you can achieve this with
myField.setAttribute("editorType", "StaticTextItem");
but not afterwards, when the user clicked on save.
I tried something like
Code:
for(FormItem field : getForm().getFields()){ field.setAttribute("editorType", "StaticTextItem"); field.updateState(); } form.redraw();
Do you have a solution in mind?
Thanks
Comment