I would like to set a Status field that I have in a dropdownlist to a certain value as well as have it Read-Only when the New Form is clicked in the form library in SP. When editing the form, I want the users to be able to change that status field and have that ddl enabled.
I have a form that I created using VB.NET to connect to a webservice and save the contents to a sql server db and all of that works perfectly, but now I am trying to limit what users see when the form new, or editable.
Example: Click New Form in SP Form Library. Form opens and if it is "new" status I want to set the Status DDL to "New" and have it read-only so the user cannot change the status. When it is submitted and is re-opened from the list, I want the Status DDL to be editable so the users can change the status.
Any ideas? I am new to InfoPath development so I am a little confused how to accomplish this. I know that in asp.net you set the ddl to a value upon load and it all works but having a hard time figuring it out in InfoPath and SharePoint.