Testing rest service response value with javascript
I am trying to test the response item's value for my image Asset in mapping. I would like to pass along another value to the UI if value='None'. If the value is something other than None I want asset to use the url in the database.
Here is my script. it works to test for None but I do not know how to edit the value that gets passed along to the UI when the value is None. (BTW- I am javascript challenged):
var photo;
if (JSON.photo1=='None'){
src='http://www.mysite.com/logo.jpg';
return src;
}