sunil maddheshi
Tera Guru

@imkhan 

Since you are getting the data from a third party and the selected value might be different from the label, you can use a Client Script (onChange or onLoad) to fetch and display the label.

Create an onChange Client Script

  • Type: onChange
  • Table: Select the catalog item or record producer
  • Field: Select the reference to your MRVS variable

script will be something like below

 

    var selectedValue = gForm.getValue('your_variable_name');  // Replace with actual variable name
    
    var options = gForm.getOptions('your_variable_name');  // Get all available options
    
    for (var i = 0; i < options.length; i++) {
        if (options[i].value === selectedValue) {
            gForm.setValue('your_variable_name', selectedValue, options[i].text); // Set label instead of value
            break;
        }
    }

 

Please mark correct/helpful if this helps you