Technical Tip 4: Change Label Color & Label Text in Form

 In this section, we will see how to change the color and text of a field in ARAS Forms

Use Case: "User wants to change the color and text of a field based on certain properties"

You can use below code snippet to achieve this functionality

Hook: This method should be attached to any item type form On Load Event

var field = document.getElementsByName("name")[0]; 
var label = field.getElementsByClassName("sys_f_label")[0];
label.style.color = "red";
label.style.innerHTML = "Changing Field Label";


LinkedIn: https://www.linkedin.com/in/gobikrishnanraja/

Comments

Post a Comment

Popular Posts

Technical Tip 2: Open item in Edit Mode through custom Method

Use Case 6: Use the System Event Logs for Logging Method Failure

Use Case 4: Instantiate Dynamic Workflow Using Action