This topic is locked

prevent add new record

3/16/2009 5:19:19 AM
PHPRunner General questions
H
homer.favenir author

hi,

i have an event script, BEFORE RECORD ADD event.

i use it to insert a record to a table,

it will auto populate the table.

but i have to input 1 field first before the auto populate

i use the ADD NEW,

but it added a blank record which is from what i input first before the auto populate

how can i avoid inserting the ADD RECORD

i use ADD RECORD just to trigger the auto populate and also to insert a record to a field
please kindly help
thanks

J
Jane 3/16/2009

Hi,
just add

return false;



to your event.