Notification toString() problem

avinashdubey103
Tera Guru

Hi , I have a requirement to print the u_questionaire field of request item in a notifcation 

I have wrtitten a email script in that iam using this 

 

I am using this script :

var u_questionnaire_value = current.u_questionnaire.toString();
 
but the output is not formatted:
avinashdubey103_0-1703594462042.png

 

1 ACCEPTED SOLUTION

@avinashdubey103  can you please share screenshot of your record that is storing this value on form?

Is it storing data on separate lines in Questionnaire field?

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

11 REPLIES 11

Anil Lande
Kilo Patron

Hi,

What is expected value?

What is the type of field?

 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

type is string 

 

i want to print it like this : same way we get using the geta value function

avinashdubey103_0-1703595075148.png

 

Have you tried this:

var u_questionnaire_value = current.getValue('u_questionnaire');

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Did you try this?

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande