10 Days Challenge–Tip #10

To close this set of tips, let’s look at a snippet of JS to set the focus on a specific control in a form:

var ctrl = Xrm.Page.ui.controls.get(“ControlName”);

control.setFocus();

Not necessarily a CRM feature but rather a JS feature, yet used in the context of CRM 2011. This works on both On-Premise and Online.

Enjoy!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

A WordPress.com Website.

Up ↑

%d bloggers like this: