How to Create a Fillable Paid Stamp with Custom Date in PDF
Question details
The user needs to recreate a dynamic 'Paid' stamp containing fillable fields for initials and a manually entered custom date, as the original JavaScript code was lost.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Applying an interactive Paid stamp on invoices or records where the actual payment date differs from the current system date.
- Observed behavior
- The current or default dynamic stamp relies on the system date, and the user needs a way to prompt for a custom date and initials upon stamp placement.
Ensure you have a PDF editor that supports JavaScript calculations and dynamic stamps, and have your base 'Paid' stamp artwork (PDF or image) ready.
Configure a Dynamic Stamp Template with Custom Prompt Scripts
Set up a custom PDF stamp with text fields and JavaScript to prompt the user for a custom date and initials each time the stamp is placed.
To override the automatic system date, you need to use JavaScript's interactive prompt commands within the text field's calculation script. This allows the stamp to pause and ask for your specific date and initials upon insertion.
Create a blank PDF and add your 'Paid' image or text as the background.
Insert interactive text fields over the background where you want the initials and date to appear.
Open the properties of the Date text field. Under the 'Calculate' tab, select 'Custom calculation script' and enter a script using `event.value = app.response('Enter Payment Date:');`.
Similarly, configure the Initials text field with a custom calculation script using `event.value = app.response('Enter Initials:');`.
Save this PDF document and import it into your PDF editor's custom stamp manager as a dynamic stamp.

Easily Manage PDF Stamps and Text with WPS Office
If writing JavaScript for dynamic stamps is too complex, WPS PDF provides straightforward tools to add custom stamps, type text, and edit PDFs without any coding required.
- 1. Open your PDF: Launch WPS Office and open your invoice or target document in WPS PDF.
- 2. Insert Custom Stamp: Navigate to the 'Comment' tab, click 'Stamp', and choose 'Custom Stamp' to upload your 'Paid' graphic.
- 3. Place the Stamp: Click on the document to place and resize the stamp as needed.
- 4. Add Custom Date and Initials: Select the 'Text Comment' or 'Typewriter' tool from the Comment tab, and simply click over the stamp to type your specific payment date and initials.

Frequently Asked Questions
Why is my dynamic stamp defaulting to today's date?
Most standard dynamic stamps use a simple script like `new Date()` which automatically fetches the system's current date. To enter a custom date, the script must be updated to use a user prompt.
Can I edit the text on a dynamic stamp after placing it?
Once a stamp is placed, it typically flattens onto the document. If you make an error in the custom date or initials, you usually need to delete the stamp and place a new one to trigger the script prompt again.
Do JavaScript stamps work in all PDF viewers?
No. Advanced JavaScript calculations and prompts are specific to advanced PDF editors. Basic PDF readers may display the stamp image but won't run the script to ask for fillable data.




