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

Only allow USD to display in Currency Field

ChadLee4
Tera Contributor

Is there a way to only allow certain currencies to show within a currency field? I would like to only display USD on a certain form but allow other currencies on other forms. Is there a way to control which currency options show?

ChadLee4_0-1716298080659.png

 

 

1 ACCEPTED SOLUTION

Heyy @ChadLee4 I found a solution for you.

Write an onLoad Client script on a table and use below code

function onLoad() {
    //Type appropriate comment here, and begin script below
    g_form.removeOption('fieldName.currency_type', 'CHF');
    g_form.removeOption('fieldName.currency_type', 'GBP');
	g_form.removeOption('fieldName.currency_type', 'JPY');
	g_form.removeOption('fieldName.currency_type', 'EUR');

}

SiddharamTakali_0-1716315973789.png

SiddharamTakali_1-1716316073360.png

 

Please mark my answer Correct/Helpful

Regards,

Sid

 

View solution in original post

3 REPLIES 3

Sid_Takali
Kilo Patron

Hi @ChadLee4 Try below steps 

SiddharamTakali_0-1716299061190.png

SiddharamTakali_1-1716299073688.png

SiddharamTakali_2-1716299091282.png

 

Regards,

Sid

 

Thank you for the response -- However, I don't want a system-wide default, just a default for a specific form/table

Heyy @ChadLee4 I found a solution for you.

Write an onLoad Client script on a table and use below code

function onLoad() {
    //Type appropriate comment here, and begin script below
    g_form.removeOption('fieldName.currency_type', 'CHF');
    g_form.removeOption('fieldName.currency_type', 'GBP');
	g_form.removeOption('fieldName.currency_type', 'JPY');
	g_form.removeOption('fieldName.currency_type', 'EUR');

}

SiddharamTakali_0-1716315973789.png

SiddharamTakali_1-1716316073360.png

 

Please mark my answer Correct/Helpful

Regards,

Sid