how to set default value as none in subcategory by using onload client script

Porkodi
Tera Contributor

how to set default value as none in subcategory by using onload client script

11 REPLIES 11

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Why don't you set it on the field itself?

 

If you do it on the script, it might have conflict with other scripts running.

-Anurag

when the page loads it set to some default value i want none should be default value

 

Hi @Porkodi,

 

If it is set via onLoad Client Script, it will every time set the value to None.
If there is an actual value set on the form and saved.
Again on loading, subCategory will be set to None. Hoping this should not happen.

Instead, try to open the Dictionary of that field and select Choice 'Dropdown with --None--'.


Mark the response correct and helpful if the answer assisted your question.

Abdul Azeem
Tera Contributor

Hi @Porkodi 

As @Anurag Tripathi  said you can set the default value to NONE by opening the dictionary entry of subcategory field.

Let us know if you face any issue here.