Clickbutton visible / unvisible

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Sigi77
User
Posts: 7
Joined: Tue Apr 04, 2023 5:48 pm

Clickbutton visible / unvisible

Post by Sigi77 »

Hello

I have a new challange.

I like to have 3 radio buttons (rd). Only when the first radiobutton is activate, should be the 2 click buttons enabled/visible and printable.

rd1 - Choice 1
cli1 - Option 1
cli2 - Option 2
rd2 - Choice 2
rd3 - Choice 3

Hope for your help.

Bye
Sigi
Vorlage_ExterneNacharbeit_v04.pdf
You do not have the required permissions to view the files attached to this post.
Sigi77
User
Posts: 7
Joined: Tue Apr 04, 2023 5:48 pm

Re: Clickbutton visible / unvisible

Post by Sigi77 »

Hello,

my knowledge of JAVAScript is low.

When I press a Button I like to set an other Button (cmdMailToBoss) the attribut "visible" true and false.

My idea is, that I check

Code: Select all

if the cmdMailToBoss is true then 
	cmdMailToBoss.visivle = false
else 
	cmdMailToBoss.visivle = true
end if 

Can anybody please give me the right JAVAScript.

Thanks
Sigi
Sigi77
User
Posts: 7
Joined: Tue Apr 04, 2023 5:48 pm

Re: Clickbutton visible / unvisible

Post by Sigi77 »

I find the solution

this.getField("cmdButton").hidden=true
User avatar
Dimitar - PDF-XChange
Site Admin
Posts: 2432
Joined: Mon Jan 15, 2018 9:01 am

Clickbutton visible / unvisible

Post by Dimitar - PDF-XChange »

:)