Hi,
Two issues which I would like to understand:
-
How to retain data in tabs in a form if each tab has an action associated with it. If I modify any field on the tab and move to a new one, the changes are lost. I would like to retain them till the form is saved.
a. Should I save each tab? Is that a good approach.
b. Can I save this data in session variable or some other way without a submit?
c. Should I trigger a submit when tab changes and save to session variable? If yes, then how do I trigger a submit.
d. Should I use jQuery to manipulate the tabs. I believe it's easy to retain data in tabs with JQuery.
e. Is there any way to retain data in a tab without using Javascript? See this post: trick : re-populate forms if submission fail.. I couldn't achieve this.
- Should tabs be created before or after a form declaration. Is there a difference?
{{ elements.getTabs(hr_emp_iid) }}
{{ content() }}
<form id="tree-form-id" method="post" autocomplete="off">
OR
{{ content() }}
<form id="tree-form-id" method="post" autocomplete="off">
{{ elements.getTabs(hr_emp_iid) }}
Amal