Skip to main content
Participant
December 31, 2024
Question

Need help with Custom Calculation Script, I think?

  • December 31, 2024
  • 1 reply
  • 600 views

I have created a form with an invoice template. 

I would like the invoice number to auto populate in sequence. I have created that field, named it Invoice Number and believe I need to use the Calculate tab and enter something inside the Custom Calculation Script - am I on the right page? And if so, nothing I insert inside this box stays. I type it in, hit ok and it immediate disappears. Maybe my code is wrong? I have no idea of the correct format but have researched and copied and pasted various data I've found thinking it was correct, and still don't have the desired results. 

Please help! 

This topic has been closed for replies.

1 reply

Nesa Nurani
Community Expert
Community Expert
December 31, 2024

What did you try already?
What triggers number to change?

kwoeAuthor
Participant
December 31, 2024

I do not know the answers to your questions. 

The things I tried already, I didn't save to know what they were. 

The invoice number needs to update each time a new invoice is created by the business owner. 
Am I in the right place to make this happen in this form?

If so, can you tell me the correct javasript or code to get this action to take place? Thank you so much!

"Don’t get so busy making a living that you forget to make a life." - Dolly
Nesa Nurani
Community Expert
Community Expert
December 31, 2024

You need to know what the trigger to advance number is, for example is it when you open a file, or save file...etc?

What is the format of the number? 1, 001 or something else?