Update hidden field by js

Confluence User - 03 Oct, 2019

Can we update the hidden field by using javascript ?

forms;hidden;field;javascript

1


03 Oct, 2019
confluenceUser
confluenceUser

Hello.

      It can and code example below :

<script>
$(document).ready( function(){

var currentField = $('#oc_status').val();

document.getElementById("jworkflow_status").value = currentField;
});
<script>


Aorka.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print