Created
January 21, 2019 08:09
-
-
Save aleksa-krolls/d47c65a9f33ddd1c4ea2db9c24aa6a25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
field('gciclubfoot__Brace_Count__c', dataValue('form.subcase_0.case.update.brace_count')), | |
//in below line, try changing humanProper() to datavalue() --> this is line 34 in the job | |
field('gciclubfoot__Brace_Problems__c', humanProper('form.subcase_0.case.update.brace_problems')), // picklist | |
field('gciclubfoot__Brace_Problems_Notes__c', dataValue('form.subcase_0.case.update.brace_problems_specified')), | |
field('gciclubfoot__Brace_Problems_Type__c', (state) => { | |
return state.handleMultiSelect(state, "brace_problems_type") | |
}), | |
field('gciclubfoot__Brace_Type__c', (state) => { | |
const ref = state.data.form.subcase_0.case.update | |
return ( ref.brace_type ? ref.brace_type_india : ref.brace_type ); | |
}), | |
//see below how when we use humanProper, the entire path to the data value - incl. "state.data" must be included. this is why i think there were issues with the brace_problems mapping | |
field('gciclubfoot__Brace_Condition_Non_MiracleFeet_Brace__c', humanProper(state.data.form.subcase_0.case.update.brace_condition)), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment