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 2126 times

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]