Expand my Community achievements bar.

Help with Drop Down Location Box Changing Currency

Avatar

Level 1

Hello,

I am working on developing a form that will change curreny of certain numerical fields when different locations are selected in a drop down box.   After some extensive research I tried the following code in an exit script but am unable to get the desired results.   If anyone can provide some clarification on where I might be going wrong I would really appreacite it.  Also, if there is an easier way to accomplish the same effect I would appreacite the info. 

Thanks so much.

Matt

P.S. - I can't seem to figure out how to attach the form to this question but would be happy to do so to provide additional clarity on my question.

switch(this.rawValue)

{

          case "1":

    form1.locale = "en_GB_EURO";

    form1.page1.BaseMin.locale = "en_GB_EURO";

    form1.page1.BaseMax.locale = "en_GB_EURO";

    break;

          case "2":

          form1.locale = "en_GB";

          form1.page1.BaseMin.locale = "en_GB";

    form1.page1.BaseMax.locale = "en_GB";

          break;

}

//xfa.layout.relayout();

//xfa.form.recalculate(1);

var vNumber1 = MinBase.rawValue;

MinBase.rawValue = null;

MinBase.rawValue = vNumber1;

var vNumber2 = MaxBase.rawValue;

MaxBase.rawValue = null;

MaxBase.rawValue = vNumber2;

0 Replies