How to fetch current value of the field in the Widget

Shubham_1120131
Tera Contributor

Hello Everyone, 

 

I am trying to develop a Service Catalog, where in the portal along with the "Name" and "Short Description" field. I also want to display the value of the "Qty Available in Stock" field from "sc_cat_item". This is a custom field created by me and I want to show the user how much stock is left for them to order from.  How can I achieve this and what modification I would have to do in the SC Catalog Item widget to show the user the current value for the field in catalog item. 

 

Shubham_1120131_1-1719255922879.png

 

Here I have hard code the value, In order to show what I am trying to achieve. 

Shubham_1120131_0-1719255888853.png

 

I appreciate anyone taking out their valuable time to answer my question. 

Best Regards, 

Shubham 

 

5 REPLIES 5

What is the type of Qty Available in Stock field? Is that available stock value stored in any another table?

You have to make the changes in server script. 

 

If my response helped you, please mark it as accepted solution and helpful. 

 

Regards,

Vaishnavi