Question

2
Replies
649
Views
Riyaz Mohamed (RiyazM03)
VirtusaPolaris

VirtusaPolaris
LK
RiyazM03 Member since 2016 6 posts
VirtusaPolaris
Posted: January 25, 2019
Last activity: February 18, 2019
Posted: 25 Jan 2019 1:17 EST
Last activity: 18 Feb 2019 5:00 EST
Closed

Uncaught ReferenceError: SafeURL is not defined

Hi,

I am trying to modify the pega login by including it to an HTML Fragment. In my HTML Fragment (defined in @baseclass) i have added a button. The button click should call an activity. I wrote below code. During the execution it gives an error in console saying "Uncaught ReferenceError: SafeURL is not defined". Could anyone please help me to solve this. my code is as below

<button style="width:60%;" onClick=createAccount()>Create Account</button>
<script type=text/javascript>
function createAccount(){
var oSafeURL = new SafeURL();
oSafeURL.put("pyActivity","AppliesToClass.ActivityName");
oSafeURL.put("ClassName", "AppliesToClass");
//oSafeURL.put("InsHandle",param);
return oSafeURL;
}
</script>
User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.