+ Start a Discussion
Mitchell McLaughlin 1Mitchell McLaughlin 1 

Encoding URL in Visual Force page

So right now i am setting my url with this line...

<apex:iframe src="https://testbeta.mrm.mm.com:9248/UniversalRequestForQuote/rc/USA/Requests/Copy/SFDC/{!quoteNumber}/{!cloneQuoteNumber}/{!cloneTitleCode}?name={!cloneQuoteName}" scrolling="true" id="cloneIframe" />


the parameter that is coming in, named cloneQuoteName, can sometimes be thrown off by characters such as "&", which will cut off a portion of the quote request name... so if a user enters in test&name, the result will just be test.

I don't know the syntax of how to do it, can someone show me how to use URLENCODE function, i believe is the one i need to use??

do i just do it to the one parameter or to the whole line???

please help!

thanks!
Mitchell McLaughlin 1Mitchell McLaughlin 1
found it!
 
Manish Pal 17Manish Pal 17
@Mitchell McLaughlin 1 Could you please share the solution here also?
Manish Pal 17Manish Pal 17
@Mitchell McLaughlin 1 Could you please share the solution here also?