- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2019 09:18 AM
I tried to create a new record from a form with an UI action
I want to pass some parameters to the new form
it works very well with all field excepted for the choice field 'Category'
I tried to set the parameters with the name of the category choice and with the sys_id of the category choice but without success
url += '&sysparm_category=' + 'sys_id';
or
url += '&sysparm_category=' + 'Incident';
This is the script that I use on my UI action
url += '&sysparm_date=' + gt.getValue();
url += '&sysparm_company=' + current.company;
url += '&sysparm_description=' + current.short_description;
could you helping me with this issue ?
Thanks,
Michaël
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2019 06:46 AM
Hello ,
I find a solution of my problem , I used &sysparm_query=category=Incident and it works
Thanks for your help 😉
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2019 09:26 AM
What is the value of Incident? You don't need the + in that line if it is not a variable, so you can say
url += '&sysparm_category=Incident';
Check the value. If it is incident with a lower case, or a number, it may not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2019 01:04 AM
Hello Mike,
Thaks for your reply , I've removed the + ( thanks for your advise) and I also check the case of the value of the incident selection and it was correct.
Unfortunatly the selectin is not made when the form is created.
Do you have an another idea ? do we have to create something else ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2019 06:46 AM
Hello ,
I find a solution of my problem , I used &sysparm_query=category=Incident and it works
Thanks for your help 😉