Tip | Replacing invalid tilde characters ( ~ ) in command strings for Command Buttons

Learn how to ensure your command strings are valid by replacing invalid tilde characters (~) when using Command Buttons.

Updated at May 10th, 2023

Your engagement helps us create the content you need. Click here to review this article.

Table of Contents


In the Command Buttons component, the use of a '~' character results in an "Invalid character" error. This is due to the use of ~ in Lua as an operator. For example:

As a workaround, use \x7E as the direct replacement. Insert \x7E as if it were the ~ in your string. For example: