slot gacor
slot gacor
Hide Fields-Logic <span class="new_2">1.7.24</span> - Bootstrap theme - eXtended CRUD & Data Management System
DEMO SITE v1.7.26

Hide Fields-Logic 1.7.24 Bootstrap theme

Hide fields based on an input or selected logic. For this instance selecting status "Shipped" will hide Requireddate and Shippeddate

HIDE CODE
<?php
    // Get an instance of the Xcrud class
	$xcrud = Xcrud::get_instance();	

    // Set the table to work with
	$xcrud->table("orders");

    // Define which columns to display in the table
    $xcrud->columns("orderDate,status,requiredDate,shippedDate,comments");

    // Define which fields are available for data entry or editing
    $xcrud->fields("orderDate,status,requiredDate,shippedDate,comments");

    // Change the input type of the 'status' field to a select dropdown and provide options
    $xcrud->change_type("status","select","",array("Not Shipped"=>"Not Shipped","Shipped"=>"Shipped","Completed"=>"Completed"));

    // Hide the 'requiredDate' field when the 'status' is 'Shipped'
    $xcrud->hide_logic("requiredDate","status","=","Shipped");

    // Hide the 'shippedDate' field when the 'status' is 'Shipped'
    $xcrud->hide_logic("shippedDate","status","=","Shipped");

    // Render the xcrud instance to display the table and form
    echo $xcrud->render();	
?>

Orders

#OrderdateStatusRequireddateShippeddateComments
Actions
121.11.2024 00:00:00Shipped22.11.2024 00:00:00 View Edit Remove
224.03.2003 00:00:00Shipped03.04.2003 00:00:0029.03.2003 00:00:00Customer requested that ad materials (such as… View Edit Remove
326.03.2003 00:00:00Shipped02.04.2003 00:00:0027.03.2003 00:00:00 View Edit Remove
404.04.2003 00:00:00Shipped12.04.2003 00:00:0007.04.2003 00:00:00 View Edit Remove
511.04.2003 00:00:00Shipped19.04.2003 00:00:0013.04.2003 00:00:00 View Edit Remove
616.04.2003 00:00:00Shipped24.04.2003 00:00:0017.04.2003 00:00:00 View Edit Remove
721.04.2003 00:00:00Shipped29.04.2003 00:00:0026.04.2003 00:00:00Customer has worked with some of our vendors in… View Edit Remove
828.04.2003 00:00:00Shipped05.05.2003 00:00:0002.05.2003 00:00:00 View Edit Remove
929.04.2003 00:00:00Shipped08.05.2003 00:00:0001.05.2003 00:00:00 View Edit Remove
1007.05.2003 00:00:00Shipped13.05.2003 00:00:0013.05.2003 00:00:00 View Edit Remove
Search
 
slot thailand
slot thailand slot gacor
slot gacor