You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to set "input/ProductCategoryInput" widget with a javascript variable

Received Response
11
Views
2
Comments

Summary:


Content (required):

I have a form where I am doing some custom logic based on other fields. I need to set the "input/ProductCategoryInput" default_value programmatically with the value of a JS variable before creating the incident on form submittion.

Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

<rn:widget path="input/ProductCategoryInput" id="OracleModel" name="Incident.Product" default_value= ""/>

I can provide a default_value in the widget and it works.

I know there is a way to set the value via variable / php, but due to custom coding with user interaction, I don't have the ability to make it available when the php code is run on page load.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!