Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Ryan Crane's Avatar

Ryan Crane

Beigetreten 15. Apr. 2021

·

Letzte Aktivität 14. Feb. 2022

Folge ich

0

Follower

0

Gesamtaktivitäten

2

Stimmen

0

Abonnements

0

AKTIVITÄTSÜBERSICHT

Neueste Aktivität von Ryan Crane

Ryan Crane hat einen Kommentar hinterlassen

Community-Kommentar Q&A - Help center and community

Hey Amie,

I have given your code variation a go and updated the script.js however after publishing the code and reviewing the form both the subject and description fields are still visible.

Here is the code for reference, which looks all good.

 

Thanks for you help so far :)

Ryan

Kommentar anzeigen · Gepostet 03. Sept. 2020 · Ryan Crane

0

Follower

0

Stimmen

0

Kommentare


Ryan Crane hat einen Post erstellt

Post Q&A - Help center and community

There are a few of our request forms where the default sytem fields Subject and Description are not required and I would ideally like to hide them.

From what I have read on other similar posts that the fields can be auto completed and hidden using Javascript or jQuery.

Following the example of the article https://support.zendesk.com/hc/en-us/articles/115002860148-Disabling-the-subject-and-description-fields-on-the-new-request-form-in-Help-Center- this is the code I have tried to use but after publishing the changesthe fields are still visble.

var ticketForm = location.search.split('ticket_form_id=')[1];

if(ticketForm == 360000116238) {
$('.form-field.request_subject').hide(); // Hide subject
$('.form-field.request_description').hide(); // Hide description
$('#request_subject').val('test subject'); // autofill subject
$('#request_description').val('test description'); // autofill description
}

Can someone point me in the right direction to get this to work

Thanks

 

 

Gepostet 02. Sept. 2020 · Ryan Crane

0

Follower

10

Stimmen

13

Kommentare