Hello, I new in Joomla, Fabrik and JavaScript, but I have some knowledge in programming.
I'm trying to change the label element of a Fabrik form using inline JS, see image. Can somebody please help me to do that, I will appreciate so much.
The code:
var form = Fabrik.getBlock('form_5');
var tipo = form.formElements.get('crear_problema___tipo').getValue();
if ( tipo == "1")
{
form.formElement.set('crear_problema___respuesta').label.innerHTML = "Otro";
}
I'm trying to change the label element of a Fabrik form using inline JS, see image. Can somebody please help me to do that, I will appreciate so much.
The code:
var form = Fabrik.getBlock('form_5');
var tipo = form.formElements.get('crear_problema___tipo').getValue();
if ( tipo == "1")
{
form.formElement.set('crear_problema___respuesta').label.innerHTML = "Otro";
}
Attachments
Last edited: