function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MDeveloperMDeveloper 

Use operators with data element

 

Hi,

 

 

I have created a page in site.com. i am using data elemnt for fetch data. but some where i need to use operators betwwen data elements like this -> {!ECS__Order__r.ECS__Net_Order_Total__c} - {!ECS__Order__r.ECS__Total_Payments__c} . but it can't subtract the elements value.

 

 

Thanks

Satish_SFDCSatish_SFDC

Use this

{!ECS__Order__r.ECS__Net_Order_Total__c - ECS__Order__r.ECS__Total_Payments__c}

 

Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.

MDeveloperMDeveloper

thanks for reply. i have already tried this but its not helpful 

Satish_SFDCSatish_SFDC
Are you getting any error message. I tried this and this worked fine.

Regards,
Satish Kumar
MDeveloperMDeveloper
i have try your code but it display same code as "{!ECS__Order__r.ECS__Net_Order_Total__c - ECS__Order__r.ECS__Total_Payments__c}"
AuyonAuyon

Can you post a snippet of your code ? It would be helpful to understand. 

 

As Satish suggested the {! <Field1> - <Field2>} should work.

 

Regards

Auyon