How to set the Record Producer Description using an onLoad client script or onChange

Peter Williams
Kilo Sage

Does anyone know how to set the Description field on a record producer base on a user selection

 

by description i mean this field

 

PeterWilliams_0-1709738591478.png

 

i tried using g_form.setValue('description', 'Test");

 

it didnt work

6 REPLIES 6

Sandeep Rajput
Tera Patron
Tera Patron

@Peter Williams try setting rich description as follows.

 

g_form.setValue('rich_description', '<p>Test Description</p>');

 

Hope this helps.

Anurag Tripathi
Mega Patron
Mega Patron

Hi Peter,

This is the description of the record producer, it is meant to be a static information that you add to provide users what the record producer is for etc. This is not made to be dynamically changed.

The screen you have shown above, that is only visible to admins/ catalog_admins, end users will not see that screen , its more behind the scenes configuration page.

What is your usecase ?

 

-Anurag

its used on the form in the Service Portal to display information

such as this:

PeterWilliams_0-1709739796770.png

 

its actually seen by anyone logging into the form.

We need to have it dymanic base on what their role is.

 

i have the script already working base on their role but cant find out to set it dynamic

Don't think you can change this dynamically.

My Suggestion ->

  • Blank out the description field on Record producer.
  • Create 2 different variables , HTML type . 
  • show / hide the HTML Variables based on the roles.
-Anurag