Update image field with different image
How can I update an image field through a script once the image has already been set? Example:
(This is in the On Edit On Success script. When a radio button is selected I want it to trigger the image change. "Urgent" is the radio button name, "PriorityImg" is the image field name.)
- //Update Urgent image per selection
- if (input.urgent == "Yes")
- {
- input.PriorityImg = "http://mywebsite.com/images/zoho/hi_pri.png";
- }
- if (input.urgent == "No")
- {
- input.PriorityImg = "http://mywebsite.com/images/zoho/no_pri.png";
- }
Using this simply replaces the image with text. Any suggestions?