How Do I Change the Color of Objects within a Lasernet Form?
    • 14 Jun 2024
    • 1 Minute to read
    • Contributors
    • PDF

    How Do I Change the Color of Objects within a Lasernet Form?

    • PDF

    Article summary

    Lasernet has a number of different methods for changing the color of objects in the Forms Editor.

    Default Colors in Lasernet

    Lasernet uses five default colors: red, green, blue, white, and black. However, HEX color codes can be used to allow for a greater range of colors. For example, a light orange using the hex code #fadda2.

    Amending the Font Color

    The text color in rearranges and text boxes can be easily changed in the text box properties.

    To change the text color,  follow these steps:

    1. Double-click the text to open the object properties window and select the Font tab.

    2. Click the Color button.

    Another window will appear, which allows you to customize the text color.

    Add a Border and/or Background to Text

    Within the Border tab, there is a Background and border section. To add a border and/or background,  follow these steps:

    1. Open the Border tab.

    There are two checkboxes:

    Border: To set the border color, the thickness of the line, the margin, and on what sides of the rearrange the line will appear.

    Background: To select and enable the background color for the text.

    1. Edit the border thickness, the location, its margin, and the background color.

    2. Once you are happy with the settings, click Ok.

    Amending the Color of a Rearrange via Scripting

    To change the color of a rearrange, follow these steps:

    1. Double-click the rearrange, open the Objects tab, and enter an Input object name in the text box.

    2. Select the Script checkbox which activates the text box in the bottom right-hand corner where the script text can be written.

    //To set the text colour (To use hex replace red with the hex code i.e. 0xFF0000 is red).
    CurrentRearrange.color = red;
    //To set the background colour.
    CurrentOutputRearrange.backgroundColor = blue;
    //To set the text box border colour.
    CurrentOutputRearrange.borderColor = red;


    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.