We have a scenario where we want to disable a field in custom page type when there is already a value in table for that, we have used enabled condition of that field in page type, but by using this condition we are not able to save the value in table, following is the condition which we have used to disable the field in forms tab "if (string.IsNullOrEmpty(filedname.Value)){true} else {false}". Is there any solution so that we can save the value in table
Hi Kalpak Shambharkar,
here is the solution
if(string.IsNullOrEmpty(EditedObject.FieldName)){ return true; }else{ return false; }
You should be fine using just the IF statement without the else part as well as given by Vukasin
Thank you Vukasin, it worked for me
Please, sign in to be able to submit a new answer.