I need to dynamically change form action link with javascript function which calculates and returns the action link base on some logic.
<form id="editForm" th:method="post" th:action="@{\''+linkProcess()+'\'}" th:object="${editObj}">
//form content
</form>
function linkProcess(){
let link=//some logic to process link;
return url;
}