Question

2
Replies
560
Views
RiyazM03 Member since 2016 6 posts
VirtusaPolaris
Posted: January 25, 2019
Last activity: February 18, 2019
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 Interface
Moderation Team has archived post
Share this page LinkedIn