Hi,
I have tried the following code to change the text field value dynamically,
Java Code:
public String getTimeValue() {
return timeValue;
}
public void setTimeValue(String timeValue) {
this.timeValue = timeValue;
}
Velocity source:
<script type = "text/javascript">
function changeField() {
document.getElementById("field").value= $timeValue;
}
</script>
<body>
<td>TimeCriteria:
<input type="text" id="field" value = "" name="timeCriteria" onChange="changeField()"> </td>
</body>
But I am Unable to get the result in the textfield , Will any body check this source please and suggest me any modification required in the code.
Thanks in Advance.
What do you mean by "unable to get result"? Where is your code placed? Where is it supposed to run? Does if do anything at all?
Actually I need to get the Java String Variable value into velocity file and need to input that value to the Text field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm afraid that doesn't clarify any of the questions I've got. Could you tell us what the answers to my specific questions are please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Recommended Learning For You
Level up your skills with Atlassian learning
Jira Align Program Essentials
Learn how to use Jira Align at the program level and how to plan for and manage your Program Increment (PI).
Managing Agile Boards and Reports
Learn how to pick the right board type for your team and customize it to fit your specific requirements.
Atlassian Certified Associate
Jira Software Board Configuration
Earn an associate-level credential from Atlassian that shows you can effectively configure Jira Software boards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.