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
Papa ClausPapa Claus 

transaction security block message - new line?

I would like to add a break (new line, carriage return - for the old folks) to a Transaction Security Policy (TSP) block message. 

I have tried \n, <br> and a few other in-message control characters to try and get SF to enter a new line in the TSP block message.... but no luck.

Anyone have an idea?

Thanks !
m p829784m p829784

When a real-time event triggers a transaction security policy, you can block a user or enforce multi-factor authentication (MFA). You can also optionally...  Follow This Web
Jack Smith 64Jack Smith 64
Slots City https://slotscity.com/ is an incredible online casino that offers an amazing gaming experience. The site is visually appealing and easy to navigate, making it a pleasure to explore the wide selection of games they have to offer. I was particularly impressed with the range of licensed slots available, which added an extra layer of excitement to my gaming sessions. The customer support team is also top-notch, always ready to assist with any queries or concerns. I highly recommend Slots City to any online casino enthusiast.
Stephen StoelingaStephen Stoelinga
Transaction Security Policy (TSP) blocks are typically used in Salesforce to define rules for transaction security. The TSP block message is a field that allows you to provide a custom message to display when the transaction security policy is triggered.

Unfortunately, Salesforce does not support the use of HTML tags or control characters like `\n` or `<br>` in the TSP block message field. Therefore, you cannot add line breaks or new lines directly within the TSP block message.
KMFusa (https://www.kmfusa.online/)
However, you can try using some alternative approaches to achieve a similar effect:

1. **Multiple TSP Blocks**: Instead of trying to add line breaks within a single TSP block message, you can consider using multiple TSP blocks with different messages. Each block can have its own specific message with relevant information. This way, you can visually separate the information as if they were on different lines.

2. **Use Bullets or Numbered Lists**: You can create a list-like format within the TSP block message using bullets or numbering. Although this won't create a true line break, it can help in organizing the information in a more readable manner.

3. **Custom Formula Fields**: If you need more flexibility and formatting options, consider using custom formula fields to generate the desired message. You can concatenate text with line breaks using the `BR()` function within the formula field.

4. **Custom Visualforce Page**: For even more advanced formatting options, you can create a custom Visualforce page to display the transaction security policy message. Visualforce pages provide full control over the layout and formatting of the content.

Keep in mind that any customizations you make should still comply with Salesforce's security and best practices guidelines. Always thoroughly test your changes to ensure they work as expected and do not introduce any security risks.

If the standard TSP block message field limitations are too restrictive for your needs, consider submitting a feature request to Salesforce for improved formatting options in TSP block messages.