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

Dynamic template issue with hidden and visual fields

New Here ,
Aug 06, 2025 Aug 06, 2025

I have created 2 Javascripts to visualize and hid specific fields. 

These fields have the properties "hidden" 

When activating the Java script these fileds become visible, exactly how it should. But when de-activing  a Java script the properties of these fields changes from "hidden" to "visible" 

 

Is this a known issue? Or is there somebody how knows how to deal with this

187
Translate
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

correct answers 1 Correct answer

New Here , Aug 08, 2025 Aug 08, 2025

Sorry, could indeed be that I used the wrong platform.

But in all cases it is fixed; 
It could be fixed by changing the Java script:
(this.getField("Box 1").value == "Yes") to show all fields 
and
(this.getField("Box 1").value == "No") to hide all fields 
And if you use this, the stated properties of a field changes to "visible" .
But if you change "No" by "Off"
(this.getField("Change Type 1").value == "Off")

then it works

Translate
Community Expert ,
Aug 06, 2025 Aug 06, 2025

Bert, are you asking this with respect to ColdFusion? I'm asking for two reasons.

 

First I just want to make sure your question is in the correct Adobe forum (people sometimes pick the wrong one), and your issue may relate to some specific aspect of another Adobe product. 

 

Second, this doesn't sound like a cf-

specific problem. Would you agree? In that case, if you don't get answer here (I think more detail is needed), you could ask it elsewhere (including asking an AI). 

 

What could really help is if you took a few minutes to put together a few-line example that demonstrates your problem, in a way that anyone could run, and share that.

 

Sometimes in doing that, you discover the problem. 🙂 If not, share that few-line demo so we can confirm seeing what you see and could recommend a tweak to get what you want. 


/Charlie (troubleshooter, carehart. org)
Translate
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
New Here ,
Aug 08, 2025 Aug 08, 2025

Sorry, could indeed be that I used the wrong platform.

But in all cases it is fixed; 
It could be fixed by changing the Java script:
(this.getField("Box 1").value == "Yes") to show all fields 
and
(this.getField("Box 1").value == "No") to hide all fields 
And if you use this, the stated properties of a field changes to "visible" .
But if you change "No" by "Off"
(this.getField("Change Type 1").value == "Off")

then it works

Translate
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 ,
Aug 08, 2025 Aug 08, 2025
LATEST

Thanks, @Bert Jan379687316sq0 , for sharing the fix. 

Translate
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 ,
Aug 07, 2025 Aug 07, 2025

It's much easier to discuss code if we can actually see it. So could you please share the code, pointing to where the problem is?

Translate
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
Resources