Skip to main content
Known Participant
December 10, 2023
Answered

ADDING TEXT TO INPUT

  • December 10, 2023
  • 1 reply
  • 995 views

Good Day, 

 

          I am looking to add the word "input" in a separate text box. Example, if I put Boss in the initial text box, the other text box would display "Boss Input". 

 

My initial box is C.O.C. ROSTER.0

The other box is C.O.C. ROSTER 1ST

 

I thought I new what was was doing as always and um yeah didnt work out for me. Thank you for your help in advance. 

This topic has been closed for replies.
Correct answer Nesa Nurani

As validation script of the first field, use this:

var f2 = this.getField("C.O.C. ROSTER 1ST");
f2.value = event.value == "" ? "" : event.value + " Input";

1 reply

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
December 10, 2023

As validation script of the first field, use this:

var f2 = this.getField("C.O.C. ROSTER 1ST");
f2.value = event.value == "" ? "" : event.value + " Input";

Known Participant
December 10, 2023

Thank you so much.