How to reset a portlet parameter on a button click?
- by aditibhat
I have a Liferay portlet param "cmd" in my JSP page, which is initialized to a value "update". I need this value to be get changed to "delete", when a user clicks on the delete button of the form. How I can go about it?
<liferay-portlet:actionURL varImpl="edit_survey_form_action">
<portlet:param name="cmd" value="update" />
<input class="optsurvey-submit" type="submit" name="submitButton" value="Delete" onclick="??????"/>