Hi,
I installed OTRS 5.0.13 and I start configuring it.
I created a separate theme (as usual) and in this one I modified the AgentTicketPhone.tt
The objective is that depending of the type of the ticket to show different dynamic fields. Everything is working fine in terms of displaying.
I'm showing them like this (in a switch):
$("[id^=DynamicField_CategorySelect]").parent().show();
$("[id^=LabelDynamicField_CategorySelect]").parent().show();
$("[id^=DynamicField_CategorySelect").addClass('Validate_Required');
$("[id^=LabelDynamicField_CategorySelect]").addClass('Mandatory');
where CategorySelect is the name of the dynamic field.
The problem is that as long as the dynamic field is a drop down then I cannot create the ticket. I don't have any error message is just highlighting the field. If I remove the validation (commenting the: $("[id^=DynamicField_CategorySelect").addClass('Validate_Required');) then everything is fine.
On a simple text dynamic field I don't have any problems with validation. I test even the Validate_Number and is working perfectly.
Anyone has any ideas or a workaround?
Thanks,
Andrei
[SOLVED} class Validate_Required not working for dropdown
Moderator: crythias
-
- Znuny newbie
- Posts: 15
- Joined: 30 Jan 2013, 11:26
- Znuny Version: OTRS::ITSM 3.2.1
- Real Name: Andrei Miron
- Company: Euroanswer
[SOLVED} class Validate_Required not working for dropdown
Last edited by andrei on 26 Oct 2016, 08:31, edited 1 time in total.
-
- Znuny newbie
- Posts: 15
- Joined: 30 Jan 2013, 11:26
- Znuny Version: OTRS::ITSM 3.2.1
- Real Name: Andrei Miron
- Company: Euroanswer
{SOLVED}: class Validate_Required not working for dropdown
Hi,
I solved the problem by applying the Validate_required specific to the select of the dynamic field.
Like this:
$('#DynamicField_CategorySelect').addClass('Validate_Required');
Regards,
Andrei
I solved the problem by applying the Validate_required specific to the select of the dynamic field.
Like this:
$('#DynamicField_CategorySelect').addClass('Validate_Required');
Regards,
Andrei