Traffic lights on Display form
Hi there
I'm having a form to edit a project and its current status. To show the status of 5 different key values we user traffic lights. This works fine with the new and edit form. But not with the display form. I've read that on the display form I cannot use the value of a field and then display a certain image depending on the field value? I should use groups? Well i have 4 different traffic lights of 5 different key values...this would result in 120 different groups, not including the permissions..... is there really no other possibility?
I'm having a form to edit a project and its current status. To show the status of 5 different key values we user traffic lights. This works fine with the new and edit form. But not with the display form. I've read that on the display form I cannot use the value of a field and then display a certain image depending on the field value? I should use groups? Well i have 4 different traffic lights of 5 different key values...this would result in 120 different groups, not including the permissions..... is there really no other possibility?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
You can get text representation of a field value on a display form by using the code below:
You can get text representation of a field value on a display form by using the code below:
Code: Select all
var value = fd.field('FieldName').control()._el().text();
alert(value);
-
- Information
-
Who is online
Users browsing this forum: No registered users and 28 guests