Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2023-05-16 12:59 PM - edited 2023-05-16 01:08 PM
Hello All,
I am trying to build custom object which would autosave the record every 5 minutes if status is "Draft".
how do we fetch value from value-list to be used in custom object logic ?
since i was not able to fetch value from valuelist i applied the logic by using Calculated text field which is working.
<script type="text/javascript">
Sys.Application.add_load(function() {
var timer;
var timeout = 10000;
if(timer) {
clearTimeout(timer);
}
timer = setTimeout(save, timeout);
});
function save() {
var status = $('#master_DefaultContent_rts_s9092_f27513c').text();
//This should fetch value from Valuelist
//alert(status);
if (status =='Draft')
{
$('#master_btnApply').click();
}
}
</script>
2023-05-16 01:02 PM
Hi @Anonymous @Anonymous
Can you please suggest ?
also is there a documentation to know to fetch value from different types of fields ?
1)Text Field - '#master_DefaultContent_rts_s9092_f27513c').text();
2)Date Field - $CM.getFieldValue(FieldID));
3)Value List -
Thanks in Advance
Thanks
2023-05-17 04:43 AM
Calc fields will not work with $CM. You should just inspect browser of element u need and follow accordingly. No special guideline.