Johnny6773854
Posts: 0
Joined: Mon Mar 31, 2014 7:11 am

Image in feed capture with js match

Hi, this topic is closed. But how do I capture this in if function if no image was foud.

_______________________

Oleg Danchenkov (Employee) over 3 years ago
You should add mapping from rss-channel-item-encoded to image-Asset parameter and add this JS code to mapping

Code: Select all

var img = value.match(/]*/)[0]; 
 var imgSrc = img.match(/ src=["']([^"']+)["']/)[1]; 
 return imgSrc;  
Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Image in feed capture with js match

You can write an JavaScript "if" statement in the mapping JS fields too.
Check out here: https://docs.appery.io/docs/appbuilde...

Johnny7459624
Posts: 0
Joined: Tue Mar 31, 2015 7:49 am

Image in feed capture with js match

Awesome thank you!

Return to “Issues”