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.
Community moderators have prevented the ability to post new answers.
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
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.