Script it to pdf2/24/2023 ![]() Scripted bookmarks may also be beneficial in the context of long questions when the relevant answer space may be located some distance from, or even on a different page to, the question, or if the reader only needs to answer some questions and not others-potentially a real asset in the case of exam papers. Perhaps more importantly, someone using a high level of magnification is likely to benefit, especially if some fields have been laid out horizontally across a page as well as vertically (such layouts are not recommended, by the way, as they not only cause problems for screen magnifier users but also for people viewing on small screens). Clicking such a bookmark will take you directly to the relevant field, ready to start typing.Īlthough PDF bookmarks are not particularly screen reader user friendly, if screen reader users were to click such a bookmark, they will hear the field’s tooltip (label) announced and will be prompted to start inputting data. In the JavaScript Editor dialogue box, type or paste the following script: getField("field-name").setFocus() where field-n ame is the contents of the relevant form field’s name attributeĪs with most accessibility enhancements, depending on the content and layout of a form, potentially all users will benefit from scripted bookmarks.From the Select Action dropdown in the Bookmark Properties dialogue box select Run a JavaScriptįigure 2: selecting Run a JavaScript to open the script editor.Press the Delete button to clear the Actions panel.In the Actions field of the Bookmark Properties dialogue box click Go to a page in this document to highlight it.You will see something like the following: Figure 1: Go to a page in this document selected in the Actions field Right-click/Ctrl + click the bookmark and select Properties.At the appropriate location in the bookmarks panel press Ctrl/Cmd + B to create an untitled bookmark.Open the bookmarks panel and expand it if necessary.When the bookmark is clicked, the cursor will be placed directly inside the relevant form field, ready to go: getField("field-name").setFocus() Adding the script ![]() ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |