If statements in Payment Fields

Conditional IF statements can be written to programmatically assign values based on a series of rules defined by simple javascript.  These IF Statements are applied within the custom formula section of your fields subtotal calculations.  Below is an example of a conditional if statement in use.


You can define a conditional statement using the following syntax: IF(statement, value_if_true, value_if_false)

["Contact.Event_Registration__c.B.Ticket_Type__c"].amount+(IF(["Contact.Event_Registration__c.B.Individual_Ticket_Quantity__c"].val="",0,
["Contact.Event_Registration__c.B.Individual_Ticket_Quantity__c"].val)*500)+(IF(["Contact.Event_Registration__c.B.Student_Sponsorship_Quantity__c"].val="",0,
["Contact.Event_Registration__c.B.Student_Sponsorship_Quantity__c"].val)*1000)

Was this article helpful?

295a6682296ed601774749fedcc7750c@formstack.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete