Skip to main content
Participant
Mar 5, 2019 10:56 PM UTC
Answered

Field Notations

I have used the Simple field notation: TotalListPrice-Discount. Nothing shows up in the Net Before Tax Field.

I have also tried   event.value=this.getField("TotalListPrice").value-this.getField("Discount").value;   and nothing works.

What am I missing? I do not know anything about Java script.

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Mar 5, 2019 11:30 PM UTC

That means you didn't enter the correct field name. Make sure you enter

spaces and upper/lower-case letters exactly as they appear in the Fields

List.

Stick with the custom calculation script, though. It's the better option.

4 replies

try67
Community Expert
Community Expert
Mar 5, 2019 11:17 PM UTC

Either one should have worked... Are there any error messages in the JS Console (Ctrl+J)?

Translate
escherAuthor
Participant
Mar 5, 2019 11:25 PM UTC

Hi,

I have:

TypeError: f is null

1051:byteCodeTool

and

TypeError: getField(…) is null

1:Field:Calculate

I have no idea what this means. What do I need to do?

Translate
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Mar 5, 2019 11:30 PM UTC

That means you didn't enter the correct field name. Make sure you enter

spaces and upper/lower-case letters exactly as they appear in the Fields

List.

Stick with the custom calculation script, though. It's the better option.

Translate