Skip to main content
Participant
July 25, 2023
Answered

The value entered does not match the format of the field [cardue]

  • July 25, 2023
  • 1 reply
  • 858 views

When end user enters

part 1 

586 for personal vehicle

$383.83  for advanced requested

 

part 2

when you enter 586 for personal vehicle you get the error.

 

Any help as to avoid getting this error would be helpful.

I did try removing the formatting and changing the formula by adding parenthesis nothting worked.

 

Thank you

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
July 25, 2023
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
July 26, 2023

Now I do not get this error.  Thank you Thom

In custom format I used this javascript.

if((event.value == 0) || isNaN(event.value) || (event.value== Infinity)) event.value = "";else event.value = util.printf("$%,0.2f",event.value);