smiling woman with Titan logo

Explore Titan's Knowledge Base

Everything you need to know about Titan!

smiling woman adding elements to a web page
dotted line pointing to 'getting started' pop up

Titan for Salesforce: How to Use Variables?

Variables offer your business the advantage of storing data in your web applications for easy manipulation and general web application building.

Titan gives you access to efficiently use variables with no coding to build cutting edge web projects. This article explores the different types of variables that Titan offers and how you can smartly use them to enhance your web applications.

Variables Explained

In Titan, the terms variables and parameters are interchangeable and refer to the same concept. If you are watching any Titan tutorials or reading our guides, please keep this in mind.

So diving in, variables are used to contain and pass data when integrating with Salesforce or your other web projects. It is important to remember that if you are looking for hidden fields going forward, they have now been replaced by variables in Titan.

Why? Unfortunately, hidden fields took up a lot of formatting space. 

Formatting Space
Formatting Space

Not to worry, Titan has solved the hidden fields issue by streamlining the platform to use variables that are still invisible to the end users. Yes, admins cannot see variables when building a form, but the parameters can be accessed and seen in debug mode to review their values.

What are the different kinds of Variables and Formula Fields?

Here is a list of variables and formula fields within Titan and a breakdown of when you can use them in your web projects.

Variables

salesforce pink tick
System fields can contain pre-defined values about a user’s access and usage. Please note that admins must not use these fields to hold any value other than the selected system value.
salesforce pink tick
Static fields can store values pulled from Salesforce, project elements, static values, or other variables.

Formula Fields

salesforce pink tick
Numeric Formula fields can execute mathematical equations using project elements.
salesforce pink tick
String Formula fields can concatenate a string of text and other project elements or variables.
salesforce pink tick
Custom JS Fields can execute personalized outputs using JavaScript code. Please ensure to follow the format provided by Titan and not “ft… get value“ for example.

Differences between Page and Project Variables

In essence, your business can utilize different levels of variables for the separate levels of your web project. For your convenience, Titan provides variables at the page, project, and strip levels. Each variable has its own use case.

Take a look at the table below. We have explained a few popular questions regarding the differences between page and project variables:

Common Feature QuestionsPage VariablesProject Variables
When are my variables live?Variables can only be live on the page it is assigned to.Variables are live on every page across the entire project.
Can variables be used for conditional logic and integrations?Only when the end user is on a page containing a variable can the parameters be utilized with conditional logic and integrations.Variables can be used for conditional logic and integrations at any point in the project.
When are conditions active?Conditions on page variables will only remain active on the assigned page.Conditions on project variables will be executed and remain active on every page load. This feature may affect the performance and speed of your project.
Can variables be passed?Variables can be passed from page to page and used across the project as needed.Variables do not need to be passed to other parameters to be active on other pages in the project.
How do I set my variables?Set page variables by clicking on the Pages button in the menu > ellipsis icon > Configure actions.Set project variables by clicking on the grey settings wheel > Tools > Custom Variables
Can i use a variable as a URL?NoYes
Are my constant variables supported?NoYes

Visit our support page if you want more information on creating variables in Titan.

What are Strip Variables?

Strip variables are available when using repeated strips or columns in a web project. You may use them to store unique values for individual records stored within their repeated type. Go ahead and identify your strip and column variables when setting your conditions or Salesforce integrations with Titan.

Integrations
Integrations

Read-Only Function vs Constant Variables

Small reminder, we changed the read-only function name to constant variables in Titan.

Constant variables are only available for project variables, ensuring that end users fill the parameter field once. Do you need this capability?

salesforce pink tick
Use constant variables to guarantee that once a value is filled into a field, the variable data is locked and cannot be changed.
salesforce pink tick
Adding constant variables to project variables provides extra protection as the committed data cannot be altered by users internally or externally.

How to use URL Variables?

Titan also allows you to fill in project variables using URLs to send a project to specific individuals with a personalized project link that connects to their Salesforce records. Here are a few essential tips when working with URL variables:

salesforce pink tick
You can enter project variables by specifying the name of the parameter and its value in the URL.
salesforce pink tick
The Map to URL function is not needed to enter and fill project variables in the URL.
salesforce pink tick
Use the Map to URL function to save variables in the URL after the user has opened the project and needs to share the link or has to refresh the page.
Research
Research

How to Review and Troubleshoot Variables

Now that you have mastered Titan’s variables, how do you know they are working correctly? We have summed up a few points to help you in your investigations:

salesforce pink tick
Enter Debug Mode to review variables and their values on each page.
salesforce pink tick
Use good naming conventions on variables to keep track of what your variables are used for.
salesforce pink tick
Use comments on variables to track where they are populated and where they are passed.
salesforce pink tick
Ensure that variables are filled before you execute actions dependent on those parameters.

Are you interested in variables and how they can elevate your web applications? Visit our YouTube channel and watch our “Titan Web Best Practices: Working with Variables“ video if you need more in-depth guidance on variables, how to access them, and when to use them.

The Main Take Away

Thank you for reading this best practice article, and we hope you have more information at your fingertips to utilize the variables in Titan confidently. If you need more assistance for your custom Salesforce use cases, ensure you get in touch with us through one of our social media channels below. We would be more than happy to help extend your Salesforce experience today!

Contact us by visiting:

Do you like this Best Practice guide?

Schedule a demo to get started with Titan variables today!

spiner
By submitting your email you agree to our terms and conditions