Recordproducer: how to display questions and answers in HRcase

Misafir99
Tera Contributor

Hello,

 

In recordproducer, how can I make sure that in HRCase the display of the question and answer list is shown below each other with a blank line?

 

I have no experience with scripting.

 

Thanks,

 

E. Yalvac

1 ACCEPTED SOLUTION

Anand Kumar P
Giga Patron
Giga Patron

Hi @Misafir99 ,

You can write on change catalog client script on last variable selected and use below code and add all variables as per your requirement in below script.

var relocationReason = g_form.getValue('relocation_reason');
var address = g_form.getValue('adress');
var state = g_form.getValue('state');
// add all variables you want to get values
var desc = '<p><strong>Relocation Reason:</strong> ' + relocationReason + '</p>' +
           '<p><strong>Address:</strong> ' + address + '</p>' +
           '<p><strong>State:</strong> ' + state + '</p>';
// add all variables you want to populate
g_form.setValue('description', desc);

Please mark it as Solution Proposed and Helpful if it works for you.
Thanks,

Anand

View solution in original post

2 REPLIES 2

Anand Kumar P
Giga Patron
Giga Patron

Hi @Misafir99 ,

You can write on change catalog client script on last variable selected and use below code and add all variables as per your requirement in below script.

var relocationReason = g_form.getValue('relocation_reason');
var address = g_form.getValue('adress');
var state = g_form.getValue('state');
// add all variables you want to get values
var desc = '<p><strong>Relocation Reason:</strong> ' + relocationReason + '</p>' +
           '<p><strong>Address:</strong> ' + address + '</p>' +
           '<p><strong>State:</strong> ' + state + '</p>';
// add all variables you want to populate
g_form.setValue('description', desc);

Please mark it as Solution Proposed and Helpful if it works for you.
Thanks,

Anand

Misafir99
Tera Contributor

Thank you very much Anand! It works now:)

 

Greetings,

 

Ecevit