cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Set a default value for what is selected as the Primary Content Source

Set a default value for what is selected as the Primary Content Source

Allow to set a default value for what is selected as the Primary Content Source.  Out of the Box, the system defaults to 'Primary File.'  We would like to set to "No Content."

Out of the Box, the system defaults to 'Primary File.'  We would like to set to "No Content."

Would like the ability to set the default based on Document Type.

4 Comments
Marco_Tosin
20-Turquoise

Jennifer,

you may vote for your idea.

ShirishMorkhade
16-Pearl

Hi Jennifer,

You may able to do this using JavaScript. Using JavaScript I am able to pre-select "No Content" for Document parent type and if type is other than parent type "Primary Content Source" will prepopulate with Local File as shown below:

    parent doc.png  other doc.png

To do this you can write your own JavaScript function and call with with syntax:

    PTC.driverAttributes.on("afterRefresh",function() {

          setTimeout(function(){ customPrimaryContent(); }, 100);

    });

Where customPrimaryContent is a custom JavaScript function.

Thanks,

Shirish

pmangla
3-Visitor

Can you please share javascript custom code . Because i am not able to set value in database thats why it is always taking file while processing to next step.

 

Thanks in advance!!

olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.