Start a conversation

Change background color of a Field with Radio Button In a Form

1. Create a field of type Radio and add a manual loockup with the possible values

2. Create an Ajax Event of type onChange or onLoad, with the respective field (active in this case)

3. Create a cambiarColor JavaScript method that will receive a color parameter (with the option f(x))

4. Where id_sc_field_name and id_sc_field_email corresponding to Name and Email
      -Right click and Inspect Elements
      -Select to choose a page element
      -Place the cursor on the part of the field that you want to change the color
      -Copy the assigned variable in the <input id = ”variable”>

5. Execute the application

Choose files or drag and drop files
Was this article helpful?
  1. Karl Kagerl

  2. Posted
  3. Updated