Are you sure that your script is correctly creating a new record that is linked to the current record on your layout with two portals?
You may want to post your actual script so that others can check it over for issues.
Are these filtered or unfiltered portals?
To post a script to the forum:
- You can upload a screen shot of your script by using the Upload an Image controls located just below Post a New Answer.
- You can print a script to a PDF, open the PDF and then select and copy the script as text from the opened PDF to your clipboard for pasting here. (with this approach, you can get multiple script steps on the same line, please edit the pasted text by inserting some returns to separate those steps.)
- If You have FileMaker Advanced, you can generate a database design report and copy the script as text from there.
- If you paste a text form of the script, you can use the Script Pretty box in the Known Bugs List database to paste a version that is single spaced and indented for a more professional and easier to read format.
The first script - opens a modal window to add a new record.
The second script is from the modal window to save the record
Is the portal on the original layout filtered or unfiltered?
If, after adding the new record, you click a blank area of the layout in your original window, does the portal then update?
If you enter layout mode and then return to browse mode, does it update to show the new record?
The portal is unfiltered and it will update when clicking on a blank area in the original window.
Clicking the blank area commits records in that window.
Modify the last part of your second script to be: