Help please!! Stuck in Lab 4.2b

Epsylen
Tera Contributor

Hi guys, 

I need help with the lab 4.2b in Developer Aplication Fundamentals. I have check 100 times my code but I can't find why is not working. The script pass to a string field the City and Country, but it does not work. Any help please?

 

Epsylen_0-1696936891362.pngEpsylen_1-1696936913820.pngEpsylen_2-1696936940463.png

 

 

3 REPLIES 3

Sandeep Rajput
Tera Patron
Tera Patron

@Epsylen Could you please update the following lines in your Set Scratchpad Values business rule and check if this change works for you. Also, make sure that Set Scratchpad Values is a display business rule.

 

g_scratchpad.city=current.requested_for.getDisplayValue(‘city’);
g_scratchpad.country=current.requested_for.getDisplayValue(‘country);

 

Epsylen
Tera Contributor

Thank Sandeep for you reply, but still not working.

I have filled the data for that user, but the field location still not showing City and Country.

 

Epsylen_1-1697103252468.png

about "make sure that Set Scratchpad Values is a display business rule", is the following pic what you mean.

Epsylen_2-1697103328491.png

 




VanshagraR
Tera Contributor

Check the name of the Requested for field in the form design menu and see if the name matches with the name given in the scratchpad code in business rule