• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to trigger a compulsory text box when a Yes checkbox is ticked

New Here ,
Feb 19, 2023 Feb 19, 2023

Copy link to clipboard

Copied

I am trying to send a document to a client, that needs a compulsary description (text box) if the answer 'Yes' checkbox is selected. I ideally would like the answer 'No' checkbox to generate the next question so that they know to move on to next automatically. 

 

How can i do this ? 

TOPICS
How to

Views

760

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 19, 2023 Feb 19, 2023

Copy link to clipboard

Copied

<moved from enterprise and teams>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 20, 2023 Feb 20, 2023

Copy link to clipboard

Copied

LATEST

You can set a text field as "required", but that is only enforced when the file is submitted, unless a special script is used to validate it when saving or printing it, for example.

The basic code is this (to be used as the custom Calculation script of the text field):

 

event.target.required = (this.getField("CheckBox1").valueAsString=="Yes");

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines