Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to do getValue and setValue in client script for Journal fields

Not applicable

Hi All,

 

I have to know how we can do set value and get value in client script for custom journal field

eg: Test comment

this is the custom field I have created with type journal

I want to get the latest comment from this field and need to trim set the comment in another field using client script

 

Also we cannot able to do set display of journal fields in client script

Is it possible to do that in client script

 

Any one can please help me on this.

1 REPLY 1

Naga Ravindra R
Kilo Sage

Hello @Community Alums 

 

You cannot achieve it with the help of client script.

You need to have business rule for this.

For example: 

var getWorkNotes = current.comments.getJournalEntry(1);  //this will get the latest comment 
you can use trim based on your requirement.
 
Please mark as helpful or correct if it helps.
Please reply back if there are any questions.