Techsavy
asked on
hide a field on new item Sharepoint list infoPath form
Hi,
I have customized a SharePoint list form using Infopath. Is it possible to hide one of the fields when a user creates an item brand new (ie, New Form) but show it when it is on Edit mode(i.e Edit Form)?.
Any help is appreciated.
Thanks
I have customized a SharePoint list form using Infopath. Is it possible to hide one of the fields when a user creates an item brand new (ie, New Form) but show it when it is on Edit mode(i.e Edit Form)?.
Any help is appreciated.
Thanks
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Hi clayfox
I have applied above rule where in I have created a choice field, that will track the form mode.
I,.e New or Edit. and set the default value to New.
so in submit button (i.e Save button in list form) rules I said if the formmode= "New" or blank then set the Formmode = Edit
and in the formatting rule of the control I want to hide, I said if formmode = New then hide the control.
But it doesn't like it for some reason and is not working. The value is nor being set to Edit when a user has submitted the form. Is the choice field being problematic here? or can we actually set a field value while submitting?
Please advise,
I have applied above rule where in I have created a choice field, that will track the form mode.
I,.e New or Edit. and set the default value to New.
so in submit button (i.e Save button in list form) rules I said if the formmode= "New" or blank then set the Formmode = Edit
and in the formatting rule of the control I want to hide, I said if formmode = New then hide the control.
But it doesn't like it for some reason and is not working. The value is nor being set to Edit when a user has submitted the form. Is the choice field being problematic here? or can we actually set a field value while submitting?
Please advise,
Make sure that the rule to set the value to edit is above or before the submit or save. Otherwise it saves before it is set.
also promote the field temporarily to verify it is saved.
once you are sure that is working then you can troubleshoot the hide
also promote the field temporarily to verify it is saved.
once you are sure that is working then you can troubleshoot the hide
ASKER