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.
Actually I need to get the Java String Variable value into velocity file and need to input that value to the Text field.
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?
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Apply agile practices
Transform how you manage your work with agile practices, including kanban and scrum frameworks.
Learning Path
Configure agile boards for Jira projects
Learn how to create and configure agile Jira boards so you can plan, prioritize, and estimate upcoming work.
Jira Essentials with Agile Mindset
Suitable for beginners, this live instructor-led full-day course will set up your whole team to understand how to use Jira with an agile methodology.