Sorry, it wouldn't allow me to post more than 1 picture. Here is the other picture for my post.
Thank you for your post.
No need to apologize for your "lack of knowledge". Everybody who visits this forum is at some stage of learning FileMaker Pro.
In FileMaker Pro, the previous record would also be briefly displayed before adding a record. You are noticing it more in Web Direct as FileMaker Pro takes a little longer to produce the code so it can be viewed in a web page.
One option is to create a blank Layout based on the same table as "Invoice Details: Web". Your script would then go to this new blank Layout, and since no fields are displayed, you would not see the content of the last record. Then, have the script add a record and switch to the "Invoice Details: Web: Layout. Does this make sense?
Thank you for your reply. I have followed your guidance and created a new blank layout. My OpenFirstWindow Script was changed to open this blank layout. It worked but I am having issues then adding a record and switching to the Invoice Details: Web Layout. I'm not sure what syntax to use. I am including a picture of the new script. After the New Record/Request line...Should I have the Go to Layout [invoice details web] layout line? Or is wrong and should be done another way.
Thank you Jason
In the second half of your script, you have:
If [Get ( SystemPlatform ) = 3 or Get ( SystemPlatform ) = 4]
This will prove true for "Web", so the next two statements are executed. Everything that occurs inside the "Else" clause will not be executed, so you are not creating a new record. Therefore, add the "New Record/Request" step in the If clause followed by the Go to Layout ( "Invoice Details: Web").
Thank you so much. That did it. You rock!!!