Hello,
I am using the dialog popup page, and in the popup page, it contains partial page(ajax call). When I close the dialog page and reopen it, fields in partial page always shows up. I like to reset the fields in the partial page and does not want to display any fields in partial page. Can you tell me how to reset the partial page in the dialog page when I re-open the dialog page. Thanks.
I am using the dialog popup page, and in the popup page, it contains partial page(ajax call). When I close the dialog page and reopen it, fields in partial page always shows up. I like to reset the fields in the partial page and does not want to display any fields in partial page. Can you tell me how to reset the partial page in the dialog page when I re-open the dialog page. Thanks.
RE: reset partial page fields in dialog page
Welcome to the forum!
If I understand correctly, on your page you have a popup dialog and you are displaying a partial page in this dialog.
When the dialog is next displayed it is showing the results from the previous partial page call, which you don+?+?+?t won+?+?+?t to be shown.
If this is correct, the easiest option would probably be to just clear out the contents of the partial page container group when you display the dialog.
To do this, add a new event action to the button that triggers the dialog display. Use the 'Perform Custom Script' action, and enter the following type of script fragment:
hyf.util.insertContent(document.getElementById('partial_page_container_group'), '');
You will need to change the name of the group accordingly if you have renamed this group from the default 'partial_page_container_group'.
If instead you want to just remove the values from the displayed fields, then you should be able to use the built in 'Reset Fields in Container' action.
I hope this helps.
Please let me know if you have any further questions.
Regards,
Gerard