Suda
Posts: 0
Joined: Sat Oct 11, 2014 9:11 pm

Modify JS while mapping service response

Hi,

I'm trying to edit the JS in the mapping window and I want to know how can I get the specific service response value before modifying it. Simply- I want to get the response and according to the value I need to return true/ false and map it to a page component visible attribute.

Say the Service response is having a field called intensity and according to the value I want to set my page component visibility. Thanks

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Modify JS while mapping service response

Hello Suda,

You should map field "intensity" from response to the field "visible" of the desired component, click on js near mapped component and add the code:
preif ( value == 'required_string ){
return true;
} else {
return false;
}/pre

Suda
Posts: 0
Joined: Sat Oct 11, 2014 9:11 pm

Modify JS while mapping service response

Thanks for the quick & prompt response, that's awesome!

Return to “Issues”