What's new

Welcome to xCrud Community - Data Management and extended PHP CRUD

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

error radiobox

dhuerta29

Member
Joined
Dec 10, 2021
Messages
30
Reaction score
1
Points
8
Location
chile
hello there is an error when using the validation and the type of radio compo together by default when I add the radio it appears marked and the validation does not seem to be executed

error.PNG
 

DaDo

Administrator
Staff member
Joined
Dec 1, 2021
Messages
108
Reaction score
23
Points
18
I will prefer to use select but try this
PHP:
<?php
    // if you want to use radio
    $array_result = array('0'=> 'False','1'=>'True');
  
    $xcrud->change_type('amount','radio','',$array_result);

//if you want to use select

  
    $xcrud->change_type('amount','select','',$array_result);
?>
 

dhuerta29

Member
Joined
Dec 10, 2021
Messages
30
Reaction score
1
Points
8
Location
chile
Hello, I have tried it and it is still marked and the field validation does not work

It seems to be a bug, can you fix it please?
 

DaDo

Administrator
Staff member
Joined
Dec 1, 2021
Messages
108
Reaction score
23
Points
18
Hello, I have tried it and it is still marked and the field validation does not work

It seems to be a bug, can you fix it please?
Can you tell me the field type on the database of amount ?
 

dhuerta29

Member
Joined
Dec 10, 2021
Messages
30
Reaction score
1
Points
8
Location
chile
but it seems that it is a bug because I just changed it to int and varchar and the same thing happens
 
Top Bottom