Auto fill user fields in form

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2009 01:04 PM
I have a record producer setup to create a new project. Currently I am pulling the creator by using javascript:gs.getUserID();. What I would like to do is auto complete other forms from that userID such as phone, email, etc.
I've attempted to discover how we did it for our incident form, but I cannot seem to piece it together.
(Incident form auto populates title and phone number after entering caller name).
Thanks,
Steve
- Labels:
-
Orchestration (ITOM)
-
Service Mapping

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2009 01:08 PM
Ok, I have been trying to get this to work, but seem to be missing something.
Let me restate what I am trying to do...
I have a record producer that creates a new project. In the record producer, I have it capturing the user that is logged in a custom field on the new project. What I would like to have happen is that when this is submitted through the record producer (or anytime a new project is created) is have other fields on the project form auto complete with other information related to the user (such as email, phone, etc) that has been entered using the record producer.
I have tried using "javascript:gs.getUserid().getemail()" as the default value in the custom field I created on the Project form, but cannot get it to populate. I know I must be doing something wrong, just not sure what it is.
Here is my dictionary entry for the field.
Dictionary Entry
Table: pm_project
Column name:u_requestor_email
Type:reference
Max length:40
Reference:sys_user
Default value: javascript:gs.getUserid().getEmail()
Everything else is not checked or blank.
Thanks,
Steve

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2009 09:24 AM
OK, I finally figured it out. Thanks for everyone pointing me in the right direction.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2009 04:21 PM
Ok so did you take the business rule route, or did you go with the javascripted default value?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2009 10:51 AM
I did the javascript for obtaining the user (javascript:gs.getUserID() ) , then added fields to my Project form from the sys_user table and this displayed the email, title, and phone records I needed from whoever opens the Project.
Still not quite sure how I got it to work, but it is.