How to show section only if first text field is not empty?

Confluence User - 14 Apr, 2022

Hi, I have two sections with text fields respectively. I wish that the second section only shows when the first text field is not empty or whitespace. I tried to use regex in section visibility control

/(?!^$)([^\s])/

to achieve but the second section won't show no matter I enter what in the first text field. Please tell me what I have done wrong, thank you very much.

forms;validate

2


15 Apr, 2022
confluenceUser
1
confluenceUser

Hii,

you can use reverse value and '\s*' regex as shown below

20 Apr, 2022
confluenceUser
confluenceUser

Thank you very much, it solves my problem

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print