Skip to main content
Participating Frequently
January 26, 2021
Question

Text entry Box as search box

  • January 26, 2021
  • 2 replies
  • 1006 views

How can I make text entry box search for multiple specific slide names for example on a windows desktop where you can search for file name or software name and takes you to the page. 

 

help. it's urgent

 
 

This topic has been closed for replies.

2 replies

TLCMediaDesign
Inspiring
February 3, 2021

Here is a way to make it work with a prompt, just execute this JS with a button:

 

var myTitle = prompt("Please enter a slide title", "");

if ( myTitle !== null || myTitle !== "")
{
var res = cp.model.data.project_main.slides.split( ',' );
res.forEach( checkLabel);
}

function checkLabel(item, idx)
{
if ( cp.model.data[ item ].lb === myTitle )
{
cpCmndGotoSlide = idx;
}
}

RodWard
Community Expert
Community Expert
January 27, 2021

There is no advanced action that you can easily set up to make text entered into a TEB automatically jump the user to slides that contain the search term.  It would require having a very large and complex Conditional Advanced Action.  JavaScript would be a better option but then you would need the services of a JavaScript programmer.

 

But... if you are using the standard Captivate TOC, then you have the option in the TOC settings to turn on the Search box in the TOC.

This at least will highlight any items in the TOC that might match your keyword.

Participating Frequently
January 28, 2021

Thank you for replying.  I tried it didn't accomplish what I'm trying to achieve. 

What I'm trying to do is with Text Entry Box, how can I use it as a search box where user can type in specific word like: door, windows, table etc. maybe with variable if user type in Door (not case sensitive) and press enter, it will take the user to slide title door. and the same Text Entry Box can be use to navigate to other slide  and then return back to main menu, enter another name and will take user to the the slide name.  Only want the user to be able to navigate to selected slide name  using Text Entry Box.

 

i hope this make sense

RodWard
Community Expert
Community Expert
January 29, 2021

Has some similar ideas in mind.  I wonder why it wouldn't be much easier to create a dropdown list with the slide labels. Each of the labels can have a hyperlink jumping to the slide mentioned. There used to be a widget packaged with Captivate in the SWF times.

The Array in JS is compulsory, since concatenation to construct a command in advanced actions still is not available (have been pleading since 10 years for it).  There is no possibility to link slide label with slide number withou JS. 

A TEB cannot be timed for the rest of the project, and has several issues if you want multiple attempts. Several button types can indeed be timed that way. Replacement of the TEB by a Scrolling Text Area, since you need an action anyway can be an alternative for that limitation of the TEB.


What if the search term occurs in more than one slide name?  How will it know which slide to jump to then?