Copy link to clipboard
Copied
I'm trying to program a hyperlink button to take user to a page, but I want that button to be dependent on a drop down menu
for example, the drop down menu will have options like: page1, page2, page3, etc
and if page1 is selected in the drop down menu, then the "take to page" button will hyperlink to page1,
but if page2 is selected in the drop down menu, then the same "take to page" button will hyperlink to page2, and so on…
can this be done?
Copy link to clipboard
Copied
Make the export values of the dropdown selections the zero-based page indices for the dropdown selection. For example:
page1 /0
page2 /1
page3/2
The numbers after the / are the export values of the dropdown and the text before are the display value. In the button, enter the following mouse up action:
this.pageNum=this.getField("Dropdown").value;
Copy link to clipboard
Copied
Olá, caso esteja usando o Acrobat Pro na função de "Preparar Formulário", temos a opção de "Lista Suspensa", que gera uma série de opções para resolver a sua dúvida.
Nela você pode adicionar uma opção para cada site que deseja e a pessoa que acessar, podera escolher a opção com o formato de lista suspensa.
Para funcionar, precisa criar a lista suspensa > adiconar os sites nas "Opções" do campo > ajustar "Abrir um link na Web" na opção do campo: "Ações".
Espero ter ajudado!
Copy link to clipboard
Copied
Make the export values of the dropdown selections the zero-based page indices for the dropdown selection. For example:
page1 /0
page2 /1
page3/2
The numbers after the / are the export values of the dropdown and the text before are the display value. In the button, enter the following mouse up action:
this.pageNum=this.getField("Dropdown").value;
Copy link to clipboard
Copied
Copy link to clipboard
Copied
The numbers after the / are the export values. You put export values like this /1 /2 /3. They should be like this 1 2 3 etc. Remove the /
Copy link to clipboard
Copied
Ooooh okay,
now it's working, thanks 🙂
Copy link to clipboard
Copied
BTW, you don't need the extra button. You can make this work from the dropdown by entering the following script as a custom keystroke script directly in the dropdown:
if(!event.willCommit)
{var page=event.changeEx}
if(event.willCommit)
{this.pageNum=page;}