Hello
I am trying this code to generate random code, but I have a problem. When I open existing record and make change the random code change.
Please how can I edit the code to change only new records, not existing record.
Here the code I am using
function transferts_argent_dv($selectedID, $memberInfo, &$html, &$args){
if(!$SelectedID){
ob_start();
?>
<script>
$j(function(){
$j('#code_transaction').val( parseInt(Math.random() * 100000000) );
})
</script>
<?php
$html .= ob_get_contents();
ob_end_clean();
}
}
Thank you
Random code
Re: Random code
Hi,
I think you need to change the check from
if(!$SelectedID){ --> if(!$selectedID){
then it should work.
I think you need to change the check from
if(!$SelectedID){ --> if(!$selectedID){
then it should work.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Random code
Hi
thank you for your help, I am goind to give a try.
Best regards,
thank you for your help, I am goind to give a try.
Best regards,
Re: Random code
Great thanks, working as expected.
Thanks again for your support
Thanks again for your support