Select to view content in your preferred language

Survey123 | Feature Report | Maybe Bug | When I remove the if statement I get a tag ${/} is unopen

588
2
Jump to solution
06-02-2022 10:53 AM
MichelleWilliamsERM
Occasional Contributor III

I want to remove the If statement, which is outside my repeat. When I do I get the error below. Please advise!

${if (Contractor | getValue:"count")>0}    

${/}

Contractor on Site ${#Contractor}

Contractor Name: ${ContractorName}

Contractor Supervisor/Representative: ${ContractorSupervisor}                                                           

Number of Contractor Personnel Onsite: ${NumberofContractorPersonnel}

Hours Onsite per day: ${ContractorHoursonSite}

 

Permits Completed ${#PermitSystemRepeat}

Type of Permit ${PermitSystem}

Description of other permits ${PermitSystemOther}

${#PermitSystemPhotoRepeat}

${#PermitSystemPhoto | size:300:0:0:300}

${/}

${/}

Complete JHA/JSA for each task: ${#JHA_JSACompletePhotoLog}

${#JHA_JSACompletePhoto | size:300:0:0:300}

${/}

${/}

${/}

${/}

MichelleWilliamsERM_0-1654192245583.png

 

0 Kudos
1 Solution

Accepted Solutions
Katie_Clark
MVP Regular Contributor

May seem obvious, but are you removing both of these lines when you delete the if-statement? The ${/} below the if-statement doesn't appear to be paired with anything. 

 

Katherine_Clark_0-1654192718110.png

 

Best,
Katie


“The goal is not simply to ‘work hard, play hard.’ The goal is to make our work and our play indistinguishable.”
- Simon Sinek

View solution in original post

0 Kudos
2 Replies
Katie_Clark
MVP Regular Contributor

May seem obvious, but are you removing both of these lines when you delete the if-statement? The ${/} below the if-statement doesn't appear to be paired with anything. 

 

Katherine_Clark_0-1654192718110.png

 

Best,
Katie


“The goal is not simply to ‘work hard, play hard.’ The goal is to make our work and our play indistinguishable.”
- Simon Sinek
0 Kudos
MichelleWilliamsERM
Occasional Contributor III

Thank you, thank you, thank you!

I'd been looking at this all morning, and it didn't break until I removed the if statement, so I thought that was the problem. I need some coffee!