Get_All_Continents
and change the request type to POST.https://countries.trevorblades.com
.storeValue()
function stores a value in localStorage. Here, we are storing the code of the selected country. navigateTo()
function navigates to Page2.Get_All_Countries_In_Continent
with URL https://countries.trevorblades.com
.Smart JSON Substitution
option.${appsmith.store.code}
. This will fetch the details of the selected continent.Get_All_Countries_In_Continent
like this:Get_Country_Details
with URL https://countries.trevorblades.com
.Smart JSON Substitution
option.${appsmith.store.country}
. This will fetch the details of the selected country.Get_Country_Details
API when a user selects a country. This will fetch the country details of the selected country every time.Get_Country_Details
response.showModal('Modal1')
when the user selects a country.