Ok Stu so I have done that and still its not recalculating based on the option selected. Below is the calculation I have and when I change the return field numbers in brackets highlighted bold to 1 or 0 I can see it's doing as I expect from initially going into the survey but does nothing post that regardless of my selection for question 1. the syntax tests fine in formula editor have I messed/missed something that I should be seeing.
import System
static def GetAttributeValue(_IncidentSurveyv2):
FeedbackMandatory = false
FeedbackHidden = true
if _IncidentSurveyv2._Question1 != 1:
FeedbackMandatory = true
FeedbackHidden = false
elif _IncidentSurveyv2._Question1 != 2:
FeedbackMandatory = true
FeedbackHidden = false
elif _IncidentSurveyv2._Question1 != 10:
FeedbackMandatory = true
FeedbackHidden = false
return String.Format(":SetHidden(_Feedback, {1});:SetMandatory(_Feedback, {1});",FeedbackMandatory, FeedbackHidden)
Thanks
Nay