In video 15 in “UI Builder Introductory Course”
Don’t understand where the ‘getCountry’ block came from. It’s connected to ‘value’ in the first ‘Set property in:’ block.
In video 15 in “UI Builder Introductory Course”
Don’t understand where the ‘getCountry’ block came from. It’s connected to ‘value’ in the first ‘Set property in:’ block.
It is a custom function. Custom functions are defined here:
I do not have that function anymore to check, but by looking at it, I think the logic there returns either a random or the first country (the block is used when the selectedCountry
argument has no passed-in value.
Regards,
Mark
Built the custom function and put the block on the page, but not sure about the logic in the function.
Can you suggest the logic for “random or the first country” return?