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
Plan, prioritize, and estimate upcoming work by creating and configuring agile Jira boards for company-managed projects.
Learning Path
Registered Scrum Basics™
Manage work more effectively by learning scrum basics from a global leader in agile transformation and training—and get credentialed by Scrum Inc.®