Login Retreive lost passwordRegister
Search

Manual  /  Functions  /  Look & Feel  /  SetHelpText

SetHelpText
SetHelpText (
string $field
string $helpText
string $helpTitle = "%title% - Help" 
)

Arguments:

Name Description
$field The field where you want to add a help text to.
$helpText The description you want to display (Your help text message).
$helpTitle The title which is displayed above the help text description. %title% will be replaced with the title of the field.

Description:

With this function you can set a help message for a specific field.
The message is displayed with use of the overlib libary.

Set a help text (a hint for the user, description) which is displayed by the field. The help icon will be displayed where %help% is located in the mask which is used.

Example

<?php 

// include the class 
include('FH3/class.FormHandler.php');   

// create a new formhandler object 
$form = new FormHandler(); 

// just a test field 
$form -> textField("Test""test"FH_STRING); 

// set the help message for the field 
$form -> setHelpText('test''Type here your help message!'); 

// button to submit the form 
$form -> submitButton();    

// set the data handler function 
$form -> onCorrect("doRun"); 

// flush it 
$form -> flush();   

// the data handler function 
function doRun$data 

    
//just display the entred msg 
    
echo $data['test']; 
}     

?>

Preview image

preview image

See also: SetHelpIcon

Latest change: 05 March 10 / 08:42

Comments

bigAPE 25 July 05 / 20:17  
The Pop-up Context Help feature uses the overLIB DHTML library. The pop-up's default overlIB commands & format are configured by editing the FH_HELP_MASK setting in FormHandler's includes/config.inc.php file. For a full list of the options available for you to control the functionality and style of the pop-up you can visit the overLIB site's Command Reference page:

http://www.bosrup.com/web/overlib/?Command_Reference

powered by PHP-GLOBE   © 2004 - 2024 FormHandler. All rights reserved.   -   Open source license