This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page showHeader="false" sidebar="false" expires="0" cache="false" docType="html" controller="TargetX_Base.TX_CommunitiesBase" extensions="AppStartController"> | |
<apex:composition template="{!defaultTemplate}"> | |
<!-- use head for extra css or important js before dom load | |
<apex:define name="head"> | |
<script>console.log('igothere');</script> | |
</apex:define> | |
<!-- set subheading tag to disable the boilerplate heading --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// THIS METHOD IS CALLED WHEN I CLICK THE SUBMIT BUTTON | |
$scope.handleSubmit = function() { | |
alert($scope.currentUser); // WHY DON'T I HAVE CURRENTUSER HERE? | |
sObj = { "sobjectType": "TargetX_SRMb__Application__c", "TargetX_SRMb__Contact__c": $scope.currentUser.ContactId }; | |
angular.forEach($scope.fields, function (f,k) { | |
sObj[f.field_api] = f.value; | |
}); | |
sObj.Deadline__c = $scope.deadline; | |
sObject.upsert(sObj, {}, function (results, event) { | |
if(event.status){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URL: https://targetxappdev1.na16.visual.force.com/apex/ProcessPayments?cost=100&cid=003j0000005XTPLAA4&retURL=/003j0000005XTPLAA4&redirectURL=/003j0000005XTPLAA4&item=Undergraduate%20Day&reason=Undergraduate%20Day&aid=003j0000005XTPLAA4&waiver=Yes&gateway=a0Tj0000001MISCEA4 | |
Controller: | |
public with sharing class ProcessPayments_Con { | |
public targetx_payment.cartHandlerClass handler{get;set;} | |
public String retURL{get;set;} | |
public String redirectURL{get;set;} | |
public Decimal cost{get;set;} | |
public String gateway{get;set;} |