Form looks and works differently in different places

bigbacon
Giga Guru

I just spent 2 months creating a form and when we look at the form from the portal, it looks and works (or doesn't work) completely differently than when I would just click "Try it" from the editor. 

 

refences don't have the searching of columns to find what you want, etc. 

 

It ignores all javascript/ui policies. Reference fields work completely different and don't show all the columns for the thing being referenced. 

 

Containers don't toggle, almost nothing works and I have absolutely no idea why. 

 

If I do it from the editor with "try it" it works perfectly and looks completely different.

 

What am I missing?

9 REPLIES 9

Gangadhar Ravi
Giga Sage
Giga Sage

@bigbacon Ensure that the UI Type for your UI Policies and Client Scripts is set to include Mobile/Service Portal. Without this, they will work in the native UI (Try It) but not in the Service Portal.

 

Please mark my answer correct and helpful if this works for you.

ok, thank you!

Rampriya-S
Tera Guru
Tera Guru

@bigbacon ,

1. For fixing Reference field:

Navigate to the Dictionary entry of the referenced field.

Add Attributes like ref_ac_columns (to specify additional columns) or ref_ac_display_value (to control what is displayed in the portal).

Example:

ref_ac_columns=column1,column2,column3
ref_ac_display_value=true

 

2. Check UI Type is set to 'All' or 'Portal' in your catalog UI Policies and Catalog Client scripts.

 

Please mark this as helpful if you find the solution acceptable. Thank you!

 

Best,
Rampriya S

but is there a way to make it search able by column like the "try it" view? that actually kind of important for what I'm doing.

 

Is this done in the "Variable Attributes"? I;m confused on where to do this.

 

the reference field is using a database view for the data if that matters.