how to set default value as none in subcategory by using onload client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 01:39 AM
how to set default value as none in subcategory by using onload client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 01:41 AM - edited ‎07-10-2024 01:41 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 01:44 AM
when the page loads it set to some default value i want none should be default value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 01:49 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 01:50 AM - edited ‎07-10-2024 01:51 AM
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.