Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#816101
Hi,

I have a text control (rfq_segment) and I want that when I enter my form, I clear the control. Is there any way to do it programatically in javascript so it won't let me pass unless I select a value (it's a dropdown)?

Or is the best way to unset the variable in a trigger before the form?

Thanks
#816110
Mark the required property of the field, so you can't submit the form without filling the field.
Then, add the following JavaScript to the form:
Code: Select all
$("#rfq_segment").setValue('');
Where "rfq_segment" is the ID of the field.

If the field is dropdown, then you need to make the first option in the dropdown have an empty value like this, so the user is forced to manually select a value.
titles-optionsInContractType.png
titles-optionsInContractType.png (21.53 KiB) Viewed 2129 times

Web3 development encompasses creating decentralize[…]

The Upland Clone Script, offered by Dappsfirm, rep[…]

Dappsfirm offers a bet365 clone script that mirror[…]

🚀 Tauchen Sie mit Immediate Alora AI in die Welt d[…]