• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Display text on another textbox

Display text on another textbox 9 months 1 week ago #43547

I have 2 text boxes. Does anyone know that when typing in textbox1, the text will be auto capitalized and displayed in textbox2
The administrator has disabled public write access.

Display text on another textbox 9 months 4 days ago #43563

  • dragos
  • dragos's Avatar
  • OFFLINE
  • Administrator
  • Posts: 631
  • Thank you received: 114
Hello,

You can try a JavaScript approach, for example, assuming that your textbox field names are:

- textbox1
- textbox2

Go to Form Properties > CSS and JavaScript > JavaScript area and add something similar:
<script type="text/javascript">
function copyValue() {
  var t1Value = document.getElementById('textbox1').value;
  var capitalizedValue = t1Value.toUpperCase(); // Capitalize the value
  document.getElementById('textbox2').value = capitalizedValue;
}
</script>

Now edit the 'textbox1' field > go to Attributes tab and add this in the Additional Attributes tab:
onchange="copyValue();"
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!