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.

 

5 REPLIES 5

yaswanthi2
Giga Sage

Hi @VedhR 

you can configure/customize the "IM Create/Edit Idea" widget in same way like title and description for your new fields in html, server script and client controller. then you have to configure the script include  "IMCreateEditIdeaDataService" - create Idea and update Idea functions and scripted rest API "idea management portal" there you can see the "idea CUD operations" in below Resource related list and configure same like title and description for operation create and update

PT5
Tera Contributor

Hello @yaswanthi2 Your info helped a lot but I'm getting an error while submission that my new fields are not defined which i added in the idea CUD Operations, I have made the changes in the widget and in client side  requestParams.sysparm_u_idea_potential_benefits = formFields.u_idea_potential_benefits.stagedValue;
requestParams.sysparm_u_ideas_for_implementation = formFields.u_ideas_for_implementation.stagedValue;

 

These two show correct values on console which submission. But the error appears saying not defined for these two fields, do you have a solution for this?

Are there any you tube videos on how to walk thru this? I keep wondering why its a widget and not just a record producer. Guessing its because of the voting. 

SasankaV
Mega Guru

Hi @VedhR , I encountered a similar use case in my experience at Work4flow. Give the below steps a try:

- Access ServiceNow Studio: Go to `System Applications` > `Studio` in your ServiceNow instance.
- Locate the Idea Portal Widget: Find the widget responsible for creating ideas in the Studio under `Widgets`.
- Modify the Widget: Open the `Create Idea` widget and edit the HTML code.
- Add New Fields: Insert HTML code for the new fields like `Situation` and `Background` under the existing `Title` and `Description` fields.
- Update Client Script: Ensure the client-side JavaScript is updated to handle these new fields.
- Update Server Script: Modify the server-side script to handle the storage of new field data.
- Test the Changes: Save your modifications and test the Idea Portal to verify functionality.
- Publish Changes: Once tested successfully, publish the changes to make them live on your ServiceNow instance.

Let me know if it doesn't work. I'd be happy to assist.