Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<script type="text/javascript"> var selectBoxName = "approval_request_approval_action_status"; $(function(){ $(FormUtil.getField(selectBoxName)).parent().hide(); $(FormUtil.getField(selectBoxName)).children().each(function(){ if($(this).attr("value") != ""){ var cssClass = $(".form-button:last").attr("class"); var button = "<div type=\"button\" class=\"form-cell\"><button class=\"" + cssClass + "\" onclick=\"completeWithVariable($(this));return false;\" value=\"" + $(this).attr("value") + "\">" + $(this).attrtext("value") + "</button></div>"; $(".form-button:last").after(button); } }); }); function completeWithVariable(obj){ $(FormUtil.getField(selectBoxName)).val($(obj).val()); $("#assignmentComplete").trigger("click"); } </script> <style type="text/css"> input#assignmentComplete{ display: none; } </style> |
...