Skip to main content
Participant
August 16, 2023
Question

hide textfield if value is 0

  • August 16, 2023
  • 1 reply
  • 401 views

hello i am new with javascript. I am preparing bills for my company. I have a calculation carried out with the hours and the hourly rate. but if I do not enter any values ​​in the row, the calculated text field with the €0 remains visible. So I need a java script. hide if the text field is €0.

if anyone could help me with this.

thank you in advance,
Alan

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
August 16, 2023

if (event.value==0) event.value = "";

Participant
August 16, 2023

Hi,
it doesn't want to work. which trigger should I take? I want that if no values ​​have been entered in the fields for calculation, there will automatically not be visible in the answer. What else can I do? it concerns an input field with a calculation and with a € sign by default

Nesa Nurani
Community Expert
Community Expert
August 16, 2023

Use it under 'Validate'.