Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to add/create/customize idea portal page ?

VedhR
Tera Contributor

Hi, 

I have a requirement where requestor wanted to add two fields on idea portal page, please see the image attached

 

Under "Title and Description"

 

Field 1 (Situation) - same as Title 

Field 2 (Background) - same as Description. 

 

create an idea is a widget. can someone help me with HTML code or any way to achieve it.

 

VedhR_0-1716488985741.png

Quick help would be really appreciated.

 

Thank you.

 

6 REPLIES 6

Hello @VedhR  @SasankaV , I hope you are well, were you able to set the fields in the idea? In my case I modified the entire ideas widget, the include script where the idea is created and updated but the JSON that sends from the idea form to the creation does not reach the data.


New fields are lost, such as they are not created in the domain when you enter the script include the JSON dataInfo. I did a debugging and when you click on create or update the JSON comes out with the new fields with the corresponding data but when it reaches the corresponding function of the Include IMCreateEditIdeaDataService script I see what comes and not even empty 

Hey @Juan Ignacio Z , maybe you have figured out the solution to this already but I may have something for you if you haven't. 

If you made the necessary customizations to the client script within the widget but are having trouble getting those new vars into the IMCreateEditIdeaDataService.createIdea() function, check the Scripted REST API the widget is using. In your case, it should be called "Idea Management Portal." Go to the Resources related list on that record and open "Idea CUD Operations." Inside the Create block, you’ll need to map your custom parameters onto the ideaInfo object that gets passed through into the script include. Once that’s done, you should see your new custom fields making it into the Script Include.

Even though the vars were being passed correctly from the client script, the REST API had no idea they existed, so they were being dropped before reaching the Script Include.

Hopefully this helps!