UI policies are alternative to client scripts.It can be used to set a field as mandatory, readonly and visible on a form. You can also use UI policy for dynamically changing a field on a form.