Skip to main content
Participant
April 18, 2024
Question

Having balance hidden unless description is entered

  • April 18, 2024
  • 1 reply
  • 1261 views

 

Hi, 

 

I have taught myself a lot over the past few days. I taught myself how to run a custom validation script to make fields display if they equal $0.00. I also tuaght myself how to do simplified field notation to make one field subtract from another. 

My question is in relation to attached form.

For Text5 Field:

I curently have simplified field notation as Text3-Text4

I currently have custom validation script as if(event.value == 0)event.value = ""

 

If text is entered in description field then I always need $0.00 to show. I still want $0.00 calucation in Balance field to be hidden if no description text is entered. 

What do I entere in custom validation script to make this happen?

I hope this makes sense. 

THANK YOU IN ADVANCE

This topic has been closed for replies.

1 reply

Nesa Nurani
Community Expert
Community Expert
April 18, 2024

If you want to show/hide depending on value, you can use something like this as validate script of "Description" field:

this.getField("Balance").display = (event.value == "")? display.hidden : display.visible;

Participant
April 18, 2024

That did not work. My only concern is the balance field not showing zeros if a coloum is entirely blank however if there is something entered and Amount- Payment =$0.00 I still need that to show in balance field. Thank you

Participant
April 18, 2024

column*