How to customize the tickets module for the ASAP Android SDK?

How to customize the tickets module for the ASAP Android SDK?

The ticket module in Zoho Desk manages all customer support requests or inquiries. Each Ticket includes the customer's name, email, phone number, and issue. The ticket module also offers automated ticket assignment, escalation, and SLA management to help support teams streamline their workflow and efficiently support their customers.

These methods help configure the Submit Ticket form on the ASAP help widget.

Hiding fields in the Submit Ticket form

The Submit Ticket form in your ASAP help widget displays the same fields configured in the ticket layout in your Zoho Desk portal. To hide any of the fields in the form, you can use the setTicketsFieldsListTobeShown() method.

You must pass this method's list of fields (apiNames) as strings. You might also have to pass the departmentId key, depending on the department mapping of the help widget. For instance, if the help widget is configured for a specific department, you don't need to pass the departmentId key. If the help widget is configured for multiple departments, you must pass the departmentId key to ensure department-ticket field mapping in the Submit Ticket form.

After you include this method, the form displays only the fields you passed.

ZDPortalSubmitTicket.setTicketsFieldsListTobeShown(ticketListTobeShown, deptId, 
layoutId);
  1. ticketListTobeShown - List of strings (apiName of the Ticket Fields)
  2. departmentId - ID of the department for which you want to configure the Ticket Fields list.
  3. layoutId - ID of the particular layout for which you want to configure the Ticket Fields.
Please note that mandatory fields are not hidden even if you do not pass their names in the method.

Hiding mandatory fields in the Submit Ticket form

If you want to hide a mandatory field in the form, you can do so, provided the field's value is pre-filled. To do this, you must use the preFillTicketFields() method.

The preFillTicketFields() method proves helpful when you want to pre-populate fields with values, such as auto-generated IDs or OS versions of devices. To use this method, you must pass the list of PreFillTicketField objects. You should also pass the departmentId key, depending on the department mapping of the add-on. Just like in the case of the setTicketsFieldsListTobeShown() method, if the add-on is configured for a specific department, you don't need to pass the departmentId key. If the add-on is configured for multiple departments, you must pass the departmentId key to ensure department field mapping.

ZDPortalSubmitTicket.preFillTicketFields(preFillTicketFields, deptId, layoutId);
  1. preFillTicketFields - List of PreFillTicketField objects
  2. deptId - ID of the department you want to configure the Ticket Fields list.
  3. layoutId - ID of the particular layout for which you want to configure the Ticket Fields.
The PreFillTicketField object contains three main properties:
  1. fieldApiName—string—the API Name of the ticket field. You can retrieve the API Name of each field using the getTicketFields() method.
  2. fieldValue - object
  3. For multi-select fields, pass the values allowed as a list of strings.
  4. Pass one of the values allowed as a string for pick list fields.
  5. For date fields, pass the value as a string in the dd-MM-yyyy format.
  6. For dateTime fields, pass the value as a string in the dd-MM-yyyy HH-mm format.
  7. For Boolean fields, pass a Boolean value.
  8. For all other field types, pass the values as string objects.
  9. Make sure that the values you pass adhere to the maxlength and decimal restrictions defined for the field.
  10. isEditable - Boolean - Key that defines if the value in the field is editable or not
For more details, refer to the sample code.

Submit Ticket event with a subscription

If you want your app to subscribe to the Submit Ticket event, use the following method, which includes an event callback.
  1. ZDPortalSubmitTicket.setCreateTicketCallback(new ZDPortalCallback.CreateTicketCallback()
    {
    @Override
    public void onTicketCreated(Ticket ticket)
    {
    //Ticket created
    }
    @Override
    public void onException(ZDPortalException e)
    {
    //Exception
    }

    });
CreateTicketCallback is the callback object that sends ticket information when a ticket is submitted via the Submit Ticket screen.
If an authenticated user submits a ticket, all its details are sent to your app. Only the ticket number is sent if a guest user submits a ticket.

Custom-Configuring Ticket actions

Users can perform various actions, including replying to, commenting, and closing tickets.

The following method helps you define which actions must be allowed and which must be disallowed when users access the ticket submission screen on the ASAP add-on.
  1. ZDPTicketConfiguration configuration = new ZDPTicketConfiguration.Builder()
            .isReplyAllowed(true)
            .isCommentAllowed(true)
            .isCommentEditAllowed(true)
            .isTicketUpdateAllowed(true)
            .build();

    ZDPortalTickets.setConfiguration(configuration);


        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            Zoho CRM Training Programs

            Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

            Zoho CRM Training
              Redefine the way you work
              with Zoho Workplace

                Zoho DataPrep Personalized Demo

                If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

                Zoho CRM Training

                  Create, share, and deliver

                  beautiful slides from anywhere.

                  Get Started Now


                    Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                    BOOK A SESSION







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG

                                  Zoho FSM Video Tutorials


                                        All-in-one knowledge management and training platform for your employees and customers.

                                                  Create. Review. Publish.

                                                  Write, edit, collaborate on, and publish documents to different content management platforms.

                                                  Get Started Now




                                                                    You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                        Manage your brands on social media


                                                                          • Desk Community Learning Series


                                                                          • Digest


                                                                          • Functions


                                                                          • Meetups


                                                                          • Kbase


                                                                          • Resources


                                                                          • Glossary


                                                                          • Desk Marketplace


                                                                          • MVP Corner


                                                                          • Word of the Day


                                                                          • Ask the Experts


                                                                            Zoho Sheet Resources

                                                                             

                                                                                Zoho Forms Resources


                                                                                  Secure your business
                                                                                  communication with Zoho Mail


                                                                                  Mail on the move with
                                                                                  Zoho Mail mobile application

                                                                                    Stay on top of your schedule
                                                                                    at all times


                                                                                    Carry your calendar with you
                                                                                    Anytime, anywhere




                                                                                          Zoho Sign Resources

                                                                                            Sign, Paperless!

                                                                                            Sign and send business documents on the go!

                                                                                            Get Started Now




                                                                                                    Zoho TeamInbox Resources





                                                                                                              Zoho DataPrep Demo

                                                                                                              Get a personalized demo or POC

                                                                                                              REGISTER NOW


                                                                                                                Design. Discuss. Deliver.

                                                                                                                Create visually engaging stories with Zoho Show.

                                                                                                                Get Started Now








                                                                                                                                    • Related Articles

                                                                                                                                    • How to change your language settings for ASAP Android SDK?

                                                                                                                                      The ASAP SDK supports 47 languages. You can set any language of your choice based on the geographical location of your app's end-users. Below are the 47 language codes that help you set the language for the ASAP help widget. Language Local Code ...
                                                                                                                                    • ASAP SDK Android - Release Notes

                                                                                                                                      Please refer to the Release Notes page for further updates. 4.6.0 The old and new CAPTCHA mechanism is implemented to submit tickets. Enhanced ASAP SDK's accessibility, which includes content description for icons and vibration and haptic feedback. ...
                                                                                                                                    • Working with the ASAP SDK for Android

                                                                                                                                      This document pertains explicitly to help widgets created using the updated new ASAP Setup. Please note that if you are using an older version of ASAP, the help widgets will be read-only. To enable the new ASAP widgets on your app, use the latest ...
                                                                                                                                    • Introducing ASAP Android SDK

                                                                                                                                      This document pertains explicitly to help widgets created using the updated new ASAP Setup. Please note that if you are using an older version of ASAP, the help widgets will be read-only. To enable the new ASAP widgets on your app, use the latest ...
                                                                                                                                    • Working with the ASAP SDK for React Native

                                                                                                                                      The ASAP SDK for mobile provides easy access to help end-users of your React Native app. Using this SDK, you can create and customize a help widget that resides within your app and provides end-users with easy access to the Help Center services: • ...
                                                                                                                                      Wherever you are is as good as
                                                                                                                                      your workplace

                                                                                                                                        Resources

                                                                                                                                        Videos

                                                                                                                                        Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                        eBooks

                                                                                                                                        Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                        Webinars

                                                                                                                                        Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                        CRM Tips

                                                                                                                                        Make the most of Zoho CRM with these useful tips.



                                                                                                                                          Zoho Show Resources