diff --git a/docs/wiki/01_STUDY_PARAMETERS_SETUP/02_Clinical_Instruments/Annexe_A_XIN-Rules.md b/docs/wiki/01_STUDY_PARAMETERS_SETUP/02_Clinical_Instruments/Annexe_A_XIN-Rules.md index 68d5c1a383..b6abd8216b 100644 --- a/docs/wiki/01_STUDY_PARAMETERS_SETUP/02_Clinical_Instruments/Annexe_A_XIN-Rules.md +++ b/docs/wiki/01_STUDY_PARAMETERS_SETUP/02_Clinical_Instruments/Annexe_A_XIN-Rules.md @@ -19,28 +19,28 @@ All elements are required if no rule is specified, unless it is part of a group. - PHP - ```php - $this->XINRegisterRule( - "field_name1", - array("field_name2{@}=={@}yes|maybe|sure"), - "Required." - ); - ``` +```php +$this->XINRegisterRule( + "field_name1", + array("field_name2{@}=={@}yes|maybe|sure"), + "Required." +); +``` - PHP (with grouping) - ```php - $this->XINRegisterRule( - "field_name", // field name on which the rule is applied - array("field_name{@}=={@}"), // rule - "Required.", // message - "group_1" // group [if field is a part of a group] - ); - ``` +```php +$this->XINRegisterRule( + "field_name", // field name on which the rule is applied + array("field_name{@}=={@}"), // rule + "Required.", // message + "group_1" // group [if field is a part of a group] +); +``` - LINST - ```php - field_name1{-}Required.{-}field_name2{@}=={@}yes|maybe|sure - ``` +```php +field_name1{-}Required.{-}field_name2{@}=={@}yes|maybe|sure +``` > _**NOTE:** When adding XIN rules some elements are implicitly added to a group in NDB_BVL_Instrument.class.inc. In consequence, a group name needs to be specified when registering a rule. A group name is necessary for the following elements:_ > ```php