Setting Two Option Set to Blank on a New Form - Dynamics CRM 2011

GulfIT
GulfIT used Ask the Experts™
on
Hi,

In CRM 2011 i need to set the Two Option Set (Yes/No) to blank for a new form and for an updated form the values selected previously needs to remain.

Since the field mentioned is mandatory its defaulting to No.

Please guide me.

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Rikin ShahMicrosoft Dynamics CRM Consultant

Commented:
Hi,

Two option set cannot be blank. It has to be either Yes or No.
Commented:
I found out a way to set on form load to set the two option set  to null.

Xrm.Page.getAttribute("XXXXXX").setValue(null);            Xrm.Page.getAttribute("XXXXXXXXX").setSubmitMode("always");

Author

Commented:
Found out a way by my self

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial