In the CustomerTicketMessage.dtl, I have 25 dynamic fields with a subset being visible depending on the service that is selected by the user. Depending on the selected service, 3 or more dynamic dropdown fields may be visible allowing the user to make a selection. Currently, selecting an item in each of the dropdown fields triggers an onchange event (postback). As most of these dropdowns have static options, I would prefer to suppress the onchange event to remove the unnecessary page refresh.
What would be the best way to suppress the onchange event for specific dynamic field dropdowns?
Disable Dynamic Field Dropdown onchange event
Moderator: crythias
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Disable Dynamic Field Dropdown onchange event
don't load the fields dynamically. (hand place them.)
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 2
- Joined: 14 Feb 2013, 08:07
- Znuny Version: OTRS 3.2
- Real Name: Jamie White
- Company: Silicon Plains
Re: Disable Dynamic Field Dropdown onchange event
So my understanding is, in CustomerTicketMessage.dtl you would comment out these lines:
<!-- dtl:block:DynamicField -->
<div class="Row Row_DynamicField_$QData{"Name"}">
$Data{"Label"}
<div class="Field">
$Data{"Field"}
</div>
<div class="Clear"></div>
</div>
<!-- dtl:block:DynamicField -->
Then you would embed the dynamic fields directly in this page. I have one dynamic dropdown in which I would like to perform the onchange/postback event. Where do I direct the post for that field?
<!-- dtl:block:DynamicField -->
<div class="Row Row_DynamicField_$QData{"Name"}">
$Data{"Label"}
<div class="Field">
$Data{"Field"}
</div>
<div class="Clear"></div>
</div>
<!-- dtl:block:DynamicField -->
Then you would embed the dynamic fields directly in this page. I have one dynamic dropdown in which I would like to perform the onchange/postback event. Where do I direct the post for that field?