Hello Subhrajit Pagal,
As per your question, you want to create and save an object of ItemSafetyCheck which should store the references of Item object and SafetyCheck object (but the selection of SafetyCheck should be based on the CheckType).
For the above requirement you should alter your domain model as below;
The above modified domain model has an additional attribute CheckType enumeration in the ItemSafetyCheck entity which is similar to the attribute CheckType present in SafetyCheck entity. This attribute will be used to filter the list of SafetyCheck objects which are either of type “Pre Inspection, Production, Day end”.
In order to achieve the desired functionality you need to do these additional changes apart from adding the CheckType attribute in ItemSafetyCheck on the edit page;
By following the above steps you should be able to achieve the desired results.
Hope this is helpful.
To let a user first answer one question before another, you can use the visibility toggles.
The visisbility can be easily toggled based on answers of enumerations.