Jump to content
sdemirayak

is it possible not-removing the ENTER character from summary

Recommended Posts

Hi all

I create a ticket starts with ENTER character.

when I save and click to EDIT, servicedesk automatically removes the ENTER characters from beginning of the SUMMARY field. (and it adds log file the whole summary as "changed". activity log gets bigger and bigger)

how can I stop it to remove these ENTERs from beginnig of summary? I checked detail_in and tried to change some "esc_style=c" to "esc_style=NONE" but no chance.

thanks in advance

Share this post


Link to post
Share on other sites

hi,

you can try to trim enter chars on ticket creation:

trigger type: POST_VALIDATE

spl:

summary = gsub(summary, "\n", "");

 

Share this post


Link to post
Share on other sites

hi cdtj

I try not-to-remove Enters and my deal is "Edit", not creation.

Servicedesk already removes Enters when press "Edit". I try to prevent it.

Share this post


Link to post
Share on other sites

try to replace summary input with textarea (add rows into dtlMacro).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×