Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
Example: Show custom field(PrimaryRelation to SiteProband) if value selected in 'Clinical Status'Proband'(RB10) field is 'Metastasis (Secondary)No'
Code Block
{
				          "name": "visitcpr.participant.extensionDetail.attrsMap.primarySiteDD15",
				          "caption": "PrimaryRelation To SiteProband",
				
          "type": "dropdown",
				
          "optional": true,
				
          "showIf": {
					            "op": "AND",
					
            "rules": [
              {
						
                "field": "visit.clinicalStatus",
						cpr.participant.extensionDetail.attrsMap.RB10",
                "op": "==",
						                "value": "'Metastasis (Secondary)No'"
					}]
				},
				
              }
            ]
          },
          "listSource": {
					
            "apiUrl": "forms/permissible-values",
					
            "selectProp": "value",
					
            "displayProp": "value",
					
            "queryParams": {
						
              "dynamic": {},
						
              "static": {
							                "formName": "visitExtensionkMCParticipantExtension",
							
                "controlName": "primarySite"
						}
					}
				}
			}DD15"
              }
            }
          }
        }

Screenshot when field is hidden:

Image Added

Screenshot when field is shown:

Image Added


Note

The rules added for skip logic is only reflected on add/edit pages. Overview page is superset of all fields described in data dictionary.

...