The CreatorCon Call for Content is officially open! Get started here.

Hiding Catalog Variables AFTER submitted

pwright137
Kilo Expert

HELP!!
I'm having trouble getting the show/hide functionality to work on catalog variables after the request has been submitted. THe show/hide works great when the form is being filled out but is lost after it is submitted. I've tried using the UI policy in the sc_req_item table and I've tried using client scripts during onload for the same table, bot with no success.

Any ideas??

21 REPLIES 21

weekendboat
Kilo Explorer

I ran into the same problem. I need the user to be able to fill in information in certain fields but make them only visible to certain group after submission--for security reasons



What i did was created an extra field on the form, make it only visible to admin, set the value to "old request" using a onSubmit script.


create another onLoad script to check if the field value is "old request', then to make selected fields only visible to g_user.hasRole(xx)



also, make sure you apply those catalog client scripts (select true) on catalog tasks and requested items.


Chinthuja2
Giga Contributor

I ran into the same issue and we have used scratchpad. I think that is the best way to use it. Some times only client script and UI policy won;t allow you to make fields visible to certain groups.