Is there a way to condition a behavior based on the screen ID? I would like to easily map and organize my behavior rules per screen.
Regards,
Steven
Hi @Steven Mustari,
Yes, you can make a condition based on screen name or id
//condition based on name
if(getFieldScreen().name == "Screen Name"){
//code here
}
//condition based on id
if(getFieldScreen().id == 1234){
//code here
}
BR,
Leo
Thanks Leo! Exactly what I needed!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.