A Random DEFAULT value would be very handy once in awhile, from the Appgini main screen, in addition to the current support for a "constant" value.
Just sayin'... )
Buck
A Random DEFAULT value
Re: A Random DEFAULT value
Add this code to the hooks/tablename-dv.js put this code:
Code: Select all
$j(function(){
var x =$j('#tableID').val();
if (!x){
var rand = Math.floor(Math.random()*100);
$j('#elementThatWantToPutRandomValue').val(rand);
}
});