Hi all,
Following is the script component-
<script>
function customizeEdit() {
var sectionID = rbf_getSectionIdByTitle("Membership Info"); // This works fine
var code = rbf_getPicklistCode("Membership");
alert(code); // I am getting null
rbf_showOrHideSection(sectionID , code=="YES");
}
</script>
Here "Membership" is the integration name of picklist which contain 2 values Not a Member and Club Memebr.
Plesae suggest.
Hi Shilpi,
Please configure codes in the "picklist" field using pipe "|" symbol.
Ex: Assume you have four values in "Membership" picklist as below:
A
B|b
C|c
D|d
When var code=rbf_getPicklistCode("Membership") is used ,then code is returned based on the selection from picklist.
If you select "Ä" from pick list it will return null(Since we haven't configured any code to A). When you select "B" it will return "b"
Hope this clarifies.
Regards,
Shiva