Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Default value not displaying system property

Ike-Either
Tera Contributor

I'm working on an application where I have a system property for how many days a user is allowed to request. I want to add the system property value from this other application into the default value in another table. 

 

I tried using the javascript: method to add the property value using gs.getProperty but no value is showing up?

 

I'm assuming that I'm not understanding something. Any help?

 

1 ACCEPTED SOLUTION

Anand Kumar P
Tera Patron

Hi @Ike-Either ,

You can call system property like 

var systemPropertyValue = gs.getProperty('your.system.property.name');

current.your_field_name = systemPropertyValue;

 

Thanks,

Anand

View solution in original post

4 REPLIES 4

Anand Kumar P
Tera Patron

Hi @Ike-Either ,

You can call system property like 

var systemPropertyValue = gs.getProperty('your.system.property.name');

current.your_field_name = systemPropertyValue;

 

Thanks,

Anand

Sandeep Rajput
Tera Patron

@Ike-Either Did you try adding following in the default tab of your field.

javascript&colon; gs.getProperty('<property name>');

 

 

 

javascript&colon; gs.getProperty('<property name>');

 

Is a good solution, thanks 👍

Ike-Either
Tera Contributor

I decided to use calculations to get the property to display in the field. But I will accept Anand Kumar as the solution as it's similar to what I did in the calculation to get it to display.