DEMO SITE v1.7.15

Parsley Validation Bootstrap 4.5 theme

Parsley Validation - Do parley validations on the form

HIDE CODE
<?php
	$xcrud = Xcrud::get_instance();
    $xcrud->table('employees');
    $xcrud->set_attr('lastName',array('id'=>'user','data-role'=>'admin'));	
	//Activate parslet validation
	$xcrud->parsley_active(true);
	//Make extension mandatory
	$xcrud->set_attr('extension',array('required'=>'required'));
	//Ensure First Name is alpha numeric	
	$xcrud->set_attr('firstName',array('data-parsley-trigger'=>'change','required'=>'required','id'=>'user','data-parsley-type'=>'alphanum'));
	$xcrud->set_attr('lastName',array('data-parsley-trigger'=>'change','required'=>'required','id'=>'user','data-parsley-type'=>'alphanum'));
	//ensure valid email and display "Email not valid"
	$xcrud->set_attr('email',array('data-parsley-trigger'=>'change','id'=>'user','data-parsley-type'=>'email',
	'data-parsley-error-message'=>"Email not valid"));	
	//ensure office Code is between 3 and 5 number characters
	$xcrud->set_attr('officeCode',array('id'=>'user','data-parsley-type'=>'digits','data-parsley-length'=>"[3,5]"));	    
    echo $xcrud->render();
?>

Employees

#LastnameFirstnameExtensionEmailOfficecodeReportstoJobtitle 
1ThompsonLesliex4065lthompson@classicmodelcars.com11143Sales Rep
2FirrelliJuliejfirrelli@classicmodelcars.com1143Sales Rep
3PattersonStevex4334spatterson@classicmodelcars.com31143Sales Rep
4TsengFoon Yueo224ftseng@classicmodelcars.com1143Sales Rep
5VanaufGeorgex4102gvanauf@classicmodelcars.com31143Sales Rep
6BondurLouix6493lbondur@classicmodelcars.com41102Sales Rep
7CastilloPamelax2759pcastillo@classicmodelcars.com41102Sales Rep
8BottLarryx2311lbott@classicmodelcars.com71102Sales Rep
9JonesBarryx102bjones@classicmodelcars.com71102Sales Rep
10FixterAndyx101afixter@classicmodelcars.com61088Sales Rep
Search