Skip to main content
Participant
Aug 16, 2023 10:52 AM UTC
Question

hide textfield if value is 0

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

try67
Community Expert
Community Expert
Aug 16, 2023 1:16 PM UTC

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

Translate
Participant
Aug 16, 2023 5:44 PM UTC

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

Translate
Nesa Nurani
Community Expert
Community Expert
Aug 16, 2023 6:12 PM UTC

Use it under 'Validate'.

Translate