Formatter Autocomplete and editrules issue PHP8.1

QuestionsFormatter Autocomplete and editrules issue PHP8.1
Tim Moore asked 3 years ago

When $col[“formatter”] = “autocomplete”; is being used with $col[“editrules”] = array(“required”=>false, “readonly”=>true, “readonly-when”=>”check_po”); Read only is not working?

if I remark out $col[“formatter”] = “autocomplete”, the rules seem to work as they should. The rules work in other columns that do not use the formatter autocomplete.

//CHECK IF LOCKED
function check_po(formid)
{
var locked = jQuery(“input[name=ui_qoute_submit]:last, select[name=ui_qoute_submit]:last”,formid).val();
if (locked != 0)
{
return true
}
}

please let me know what info you may need from me.

Thanks,

Tim

1 Answers
Abu Ghufran Staff answered 3 years ago

For fix, inside lib/inc/jqgrid_dist.php, replace:

if (!empty($c["edittype"]))
    $tag = $c["edittype"];

With:

if (!empty($c["edittype"]) && $c["edittype"] !== "text")
    $tag = $c["edittype"];
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

0 + 3 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?