VA conversational catalog items

preethigovi
Tera Contributor

Hi Team,

 

I need to make one of record producer to conversational item and i have made it.

There is one error that we must not use DOM objects in client script to make conversational.

This is the client script we use.

 

function onSubmit() {
   //Type appropriate comment here, and begin script below
    if((g_form.getValue('does_the_proposed_delegate_report_to_the_manager') == 'No') && this.document.getElementsByClassName('get-attachment').length == 0) {
        g_form.addErrorMessage(getMessage('You must attach a confirmation message from your proposed delegates manager with this ticket before proceeding.'));
        return false;
    }  
}
 
 
How we can modify so it supports VA.