• Cynthia Douglass
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 11
    Replies
I'm looking to recreate, in Salesforce, a form that some of our officers use for processing payments.  The part of the form called "Amount Due" requires several formulas, which I'm not sure how to create.  As I'm new to Salesforce and creating formulas, any help would be appreciated!

The form looks like this, with the items in bold (Previous Balance, Credit,Total Due, and Remaining Balance) representing what I need to figure out formulas for:

Subtotal: (Greg Rohman helped me with this, and is an amount calculated, in US dollars, by multiplying # of documents by price per document)

Delivery Charges: (This is a flat fee and is therefore a picklist for either 0 or $15)

Previous Balance: (= Remaining Balance, if positive, from the last time this company did business with us)

Credit: (= Remaining Balance, if negative, from the last time this company did business with us)

Total Due: (= Subtotal + Delivery Charges + Previous Balance - Credit)

Total Paid: (This is manually enterered by our officers, in dollars)

Remaining Balance: (= Total Due - Total Paid; if positive, this becomes the new Previous Balance for the company on their next invoice; if negative, this becomes the new credit for the company on their next invoice)

Would you have any ideas about how to do this?
I want to subtotal the number of documents on an invoice with the price per document, with the price being variable and in a picklist.  My simple mind thinks this simple formula would work:

Number_of_Documents__c * Document_Price__c

However, it seems that Salesforce can't compute formula this when one of the items is in picklist form.

First, why can Salesforce not compute such a simple formula when one of the values is from a picklist?

Second, what do I need to add to make this work?

The Number_of_Documents__c custom field is a number field.

The Document_Price__c is a picklist of numbers: 35, 25, 15, etc.

Finally, how do I express the Subtotal as a value in US dollars?
I created a web-to-lead form & embedded the code in my website. The form looks correct in edit mode on my page, but once published, the field names disappear, so I can't test it (since I can't see what blank line relates to which field). I'd also like to match the font in the form to the font in the website, set up a validation rules that requires a match between "Email" and "Confirm Email."  On the wish list is creating two columns for information in the form that is short, so the whole form is not so long.  I added an extra line break to have more space between lines, and spaces after field names so that the names are butting up against the blank line.  In some cases I added a colon after the field name when missing.  All of these little "extras" did not change the fact that the form doesn't show up properly once publishes.  I published first with no changes, code exactly as it was generated from Salesforce, and then with changes.  No difference.  Can you help me?

Adding the entire code for this form makes this question longer than the maximum 32,000 characters.  What would be useful to post with this question if I can't include the entire code?