How do I set a default value for snRecordPicker directive?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2016 08:52 PM
Hi,
I have an sn-record-picker that reference to user table.
I want to set the default value upon onload to the current logged in user.
Please help.
<sn-record-picker field="caller" table="'sys_user'" display-field="'name'" display-fields="'email'"
default-query="'active=true'"
value-field="'sys_id'" search-fields="'name'" page-size="100" >
</sn-record-picker>
Thanks!
Labels:
- Labels:
-
Scripting and Coding
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2017 07:25 AM
That fixed it. Woot.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2018 02:56 AM
Hi,
How to make the first dropdown value as default value in the sn record picker.