- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2017 09:31 AM
Hello Experts,
I have a requirement where if the Candidate field is set as Choice which consist of New & Existing, whenever the user selects candidate choice field as New, then a New Customer Pop up Window must be available with the following fields:
* Name
* Street 1
* City
* State/Province
* Phone Num
I know how to create dialog box window on a form but dont know how to implement it using variables
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2017 11:20 AM
Hi Shaik,
What will you do with the information? will it be stored anywhere? maybe connected to another record?
My idea would be to use the information to update an existing record or to create a new record on some table. If the second case, you can create a view on that table that consists of your desired fields, call that view using GlideDialogForm and once submitted, create a new record with the information.
So you would need something like this:
if(newValue == 'new') { //or the value of new
var dialog = new GlideDialogForm('Please fill in the information', 'TABLE_NAME'); //title, table name
dialog.addParm('sysparm_view', 'default'); //Specify a form view
dialog.addParm('sysparm_form_only', 'true'); // Do not show related lists
dialog.render();
}
harel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2017 11:20 AM
Hi Shaik,
What will you do with the information? will it be stored anywhere? maybe connected to another record?
My idea would be to use the information to update an existing record or to create a new record on some table. If the second case, you can create a view on that table that consists of your desired fields, call that view using GlideDialogForm and once submitted, create a new record with the information.
So you would need something like this:
if(newValue == 'new') { //or the value of new
var dialog = new GlideDialogForm('Please fill in the information', 'TABLE_NAME'); //title, table name
dialog.addParm('sysparm_view', 'default'); //Specify a form view
dialog.addParm('sysparm_form_only', 'true'); // Do not show related lists
dialog.render();
}
harel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2017 01:46 AM
Hello Harel,
Hope you are doing good.
On the Record producer when user selects New choice then the Dialog box must popup and the entered data should be autopopulated into the Incident table.
With above code it is re-directing the complete form of Incident, but only below fields must be visible, cant we use GlideDialogWindow instead of GlideDialogform ?
* Name
* Street 1
* City
* State/Province
* Phone Num
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2017 07:18 AM
Hi Shaik,
I am not sure I understand: the fields, once populated and submitted, should go where in the incident table? to another incident? to the same incident?
Also, with the above code, note the following line:
dialog.addParm('sysparm_view', 'default'); //Specify a form view
The line above can show only your fields if you create a proper view. This is how:
Go to your incident form.
1. Create a new view by clicking on Configure -> Form Layout
2. Click on View name drop down box and choose "New"
3. Enter a new View name (let's call it "test_123" for example) and click OK.
4. Now, in View name, you will see the new view name and in the right select box (under Selected), you will see all of the fields of the incident form.
Remove the ones you don't want to see and leave only those which you want there - namely, the list of fields from above.
5. Now change the line above to reflect your new view:
dialog.addParm('sysparm_view', 'test_123'); //Specify a form view
harel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2017 07:43 AM
Harel,
I got that.. Thanks for your help
You are awesome, can you help me out for below thread if possible ?
Hwo to use currency type in catalog variable