logo
down
shadow

how to set custom validation message in grocery crud


how to set custom validation message in grocery crud

By : user2956072
Date : November 22 2020, 10:54 AM
I wish did fix the issue. , Your check_salt($str) function should be like this
code :
function check_salt($str)
{

   if($str > 5)
   {
      $this->form_validation->set_message('check_salt',"Salt value must be less then FIVE");

      return false;
   }else{
      return true;
   }
}


Share : facebook icon twitter icon
change custom button action in grocery crud

change custom button action in grocery crud


By : avaysinha1245
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further I have the code that adds two custom buttons into grocerycrud: , I think it may be a typo?
Try:
code :
function get_row_id($primary_key, $row, $which_url)
{
    return site_url('person/' . $which_url) . '?id_person=' . $row->id_person;
}
How to open in a new window a custom action in grocery crud?

How to open in a new window a custom action in grocery crud?


By : Jon Miñón García
Date : March 29 2020, 07:55 AM
should help you out You could modify the default grocery crud, to add a jquery handler (or you could add that using a callback if you prefer this for some reason).
This jquery handler will make the links of some determined class ( for example the class attribute of an add_action generated button can be class="edit_button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" ) to open in a new window (target="_blank").
GROCERY CRUD : Display error message when updating database is failed

GROCERY CRUD : Display error message when updating database is failed


By : ebensure
Date : March 29 2020, 07:55 AM
Hope that helps First of all this post is not about form validations (javascript), but validations with respect to the database constraints.. , You can use callback before delete.
code :
$crud->callback_before_delete(array($this,'cek_before_delete'));
$crud->set_lang_string('delete_error_message', 'This data cannot be deleted, because there are still a constrain data, please delete that constrain data first.');


function cek_before_delete($primary_key) {
    $this->db->db_debug = false;
    $this->db->trans_begin();
    $this->db->where('id', $primary_key);
    $this->db->delete('table_name');
    $num_rows = $this->db->affected_rows();
    $this->db->trans_rollback();
    if ($num_rows > 0) {
        return TRUE;
    } else {
        return FALSE;
    }
}
No success message when adding/updating/go back to the list in grocery crud

No success message when adding/updating/go back to the list in grocery crud


By : Prafulla
Date : March 29 2020, 07:55 AM
will be helpful for those in need Actually it is good to ask, as it is a common error on grocery CRUD when there is a JavaScript error. This is mainly a problem when there is a JavaScript error at the previous page.
For example when you are at your add form . For example: http://www.grocerycrud.com/demo/offices/add check your firebug to see if there is any JavaScript error. This is mostly happen when you have the jquery or the jqueryUI already at your JavaScripts . If so then to prevent the conflict, a simple line of code can release you from the searching. You can simply do:
No success message when updating/go back to the list grocery crud

No success message when updating/go back to the list grocery crud


By : Downloader Moody Guy
Date : March 29 2020, 07:55 AM
Hope that helps I'm using Codeigniter and Grocery Crud for a project The crud is working fine but the problem is that when I add the text-editor then i don't get the success message .. here when i am adding this line , I did your example:
Controller:
Related Posts Related Posts :
  • How to make a sitemap using zend framework 1
  • Laravel: array to Model with relationship tree
  • $_SERVER['DOCUMENT_ROOT'] vs $path = $_SERVER['DOCUMENT_ROOT']
  • What is the best way to store multiple checkbox values in the database and work with it later on
  • Why does foreach copy the array when we did not modify it in the loop?
  • Receive Jquery/Ajax Post Request in PHP
  • How to better use the if(!empty()){ //codes} statement
  • PHP error mysql_close() boolean given
  • Move an image file from one server to another using PHP
  • PHP: Encoding non ISO-8859-1 charactrers into utf8
  • Handling MySQL errors in PHP
  • Object orientated mysql num_rows query in one line
  • Remove not closed html elements from end of text
  • Generate random ENUM value [PHP, MySQL]
  • Deleting data from table using jQuery and SQL
  • How to make sure the constructor is executed when I'm trying to reach a static property?
  • Trying to understand arrow next to PHP function
  • Form using external php file to show "Sucess"
  • WooCommerce - new shipping method - how to query individual product weights
  • Common integer representation over variable casting?
  • PHP - Prevent client from tampering the ID of a form
  • unexpected T_PUBLIC error
  • Types of testcases in PHPUnit
  • keeping a LDAP user logged in with PHP session
  • Detect if browser supports WebP format? (server side)
  • real_escape_string not cleaning up entered text
  • E-commerce products filter
  • Why having more than one test method in a file using Laravel raises error?
  • PHP Escaped special characters to html
  • Basic prepared statement not INSERTING
  • PHP combobox not showing in HTML table
  • MySql PHP row request to variable
  • Join two tables with one table has multiple rows matching
  • Looping through users with Instagram API requests is REALLY slow
  • Unable to add 30 days to date within loop
  • Return from mysqli_query() into array
  • php rename() function returns "No such file or directory" error
  • form submit inside navigation menu
  • PHP: reasons to use GET and POST request at the same time?
  • Is break; required after die() php
  • little depth of session in php
  • Authentication Logon page not working using PHP and Oracle on Apache / Windows 2008
  • Magento reindexing error product flat data
  • Laravel 4: Running composer when deploying to Heroku
  • Long Polling or WebSockets
  • How to use mysqli_stmt_bind_param for integers, boolean, etc
  • Determining the content of a link
  • MYSQL and PHP update events?
  • PHP explode all square bracket
  • Transparent hexagon-masked collage using PHP GD
  • Plugins or text do NOT show up on custom wordpress template
  • inserting data into mysqli database
  • Two arguments to closure function laravel
  • UnClear image exported by ffmpeg from mp4 file
  • is the time of computer and localhost same?
  • change custom data- value after ajax post success
  • Can We Restrict PHP Variables to accept only certain type of values
  • csv file is inserting a blank row in the last of other rows into mysql table
  • How to convert special characters in xml using php?
  • Mcrypt are very confusing
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org