Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Datacap Content Navigator 2 Fields Issue

    Posted Fri August 15, 2025 09:13 AM

    Hi there I have 2 Fields that are not connected but need to work together. I have one field where a user will select from a dropdown. The next field is a Lookup based on the value of the first field. This works great until the user selects a new value from the first field and neglects to do anything with the second field as that data is now out of sync.

    To date what I have done is added an onChange event listener to Field 1 so when the value is changed the event gets fired this works great.

    I also have the event listener able to get the second field but I don't know what to set on it to clear it out. This object has so many pieces in it I have tried to set different values but the field does not clear out.

    Does anyone out there know what I need to set on an ICN Field to have it clear out is current value?

    Thanks

    Troy 



    ------------------------------
    Troy DesBarres
    ------------------------------


  • 2.  RE: Datacap Content Navigator 2 Fields Issue

    Posted 21 days ago

    Good day I have resolved this issue and thought that I would share the resolution with everyone as this is a big problem when trying to link multiple Fields together in ICN.

    Issue: Two Fields that are related yet not connected in ICN. When Field 1 is a Select to get data from a datasource. Field 2 is a Lookup having the where clause is a Value from Field 1. The issue is when you select from Field 1 and click on the href from Field 2 and select from the popup list and then select from Field 1 again choosing a different value nothing happens to Field 2.

    Solution: When a change happens to Field 1, Field 2 must clear out to provide a visual representation to the user that something must be done with Field 2.

    Steps

    1. Edit the Datacap ICN Panel in an Editor
    2. Locate the Property Widget for the field that you want to clear out add to the property an id='XXX' and a name name='XXX'
    3. Now on Field 1 you need to add an onChange event listener ass this code to your Field 1 Property Widget 

    data-dojo-props=\"onChange:function(val){console.log('Type Changed to:', val);var sub = dijit.byId('XXX');if(sub){console.log(sub.editorWidget.textbox);sub.editorWidget.textbox.value='';}else{console.log('Could Not Find Widget');}}

    In ICN this will get fired every time a slection change is made. 

    Thanks

    Troy



    ------------------------------
    Troy DesBarres
    ------------------------------