Hi,
You can add a random number to admin field by modify your "post-functions.php. Goto line 147-153 you will find these code :
if(($element_info[$element_id]['is_private'] == 1) && empty($_SESSION['logged_in'])){
if(!empty($element_info[$element_id]['default_value'])){
$table_data['element_'.$element_id] = $element_info[$element_id]['default_value'];
}
continue;
}
try to replace with this
if(($element_info[$element_id]['is_private'] == 1) && empty($_SESSION['logged_in'])){
if(!empty($element_info[$element_id]['default_value'])){
$table_data['element_'.$element_id] = $element_info[$element_id]['default_value'];
}
if ($element_id == 5 && $form_id == 5)
{
$table_data['element_'.$element_id] = (string) rand(1000,2000);
}
continue;
}
in there I assume your admin field element id = 5 with form id = 5 and it will give your random number between 1000 and 2000 for your passoword
MachForm Support