I have used the Forms help file to build a stored procedure that creates a permit number that fills in a read-only field.
When I create new forms it auto-populates the field perfectly from the database. However, when the form is submitted by an anonymous user (portal) the variable for that field is blank UNLESS I log in as a forms user and submit the form as a valid forms user then the variable is populated.
How do I make the form save the auto-populated field to the variable for anonymous users?