You need to sign in to do that
Don't have an account?
RAMA KANTH
URLENCODE in javascript not Working what I expected
Hi all,
I am Trying to use a custom button, in that code we have
sforce.apex.execute( "CaseCreationForET","ETCaseCreation",{caseSubject:"{!URLENCODE(Case.Subject)}",caseDescription:"{!URLENCODE(Case.Description)}"} );
Here caseSubject Is passeed as a string to APEX method as Below and inserted the case with same subject
Case csobj = new Case();
csobj.Subject=caseSubject;
insert csobj;
but orignal case Subject is as :: Request for issue ticket
and Newly Created case Subject as :: Request+for+issue+ticket
why the subject field is changed in newly created case
Please let me know if there is any way.
Thanks.
I am Trying to use a custom button, in that code we have
sforce.apex.execute( "CaseCreationForET","ETCaseCreation",{caseSubject:"{!URLENCODE(Case.Subject)}",caseDescription:"{!URLENCODE(Case.Description)}"} );
Here caseSubject Is passeed as a string to APEX method as Below and inserted the case with same subject
Case csobj = new Case();
csobj.Subject=caseSubject;
insert csobj;
but orignal case Subject is as :: Request for issue ticket
and Newly Created case Subject as :: Request+for+issue+ticket
why the subject field is changed in newly created case
Please let me know if there is any way.
Thanks.
Try to use
{!URLENCODE(URLENCODE(Case.Subjec))}
Please refer below link for the same
http://salesforce.stackexchange.com/questions/4074/proper-urlencoding-of-spaces-in-formulas-syntax
Hope this helps you!
Please mark it as Best Answer if my reply was helpful. It will make it available for other as the proper solution.
Thanks and Regards
Sandhya