Hello @michaelrieder,
I recommend running your code after completing the reset action. For example, you can modify the piece of code as follows:
setTimeout(function(){
HIDEFIELD('fieldname72');
IGNOREFIELD('fieldname22');
HIDEFIELD('fieldname61');
SHOWFIELD('fieldname67');
getField('fieldname12').jQueryRef().removeClass('cff-collapsed');
getField('fieldname36').jQueryRef().removeClass('cff-collapsed');
}, 500);
Best regards.
Hi CodePeople
It doesn’t help. Interestingly only have of the reset is executed. Two values are not set, one field is not shown, and one field is not calculated.
Best Regards
Hello @michaelrieder
When I press the “Pantani” button, the values of the fields are reset to the initial values as they should be, and I have repeated this several times. Could you tell me which fields are not reset?
Best regards.
Hi CodePeople
Ok. I select an ascend different to the initial one (Alpe d’Huez..). Then I press “Pantani” and every reset goes well. Then I select another ascend like Col du Sanetsch and press “Pantani” again. Then only half is reseted. With a second press on “Pantani” the reset is ok.
Best Regards
Hello @michaelrieder
Could you please modify the onclick event as follows?
var me = this; setTimeout(function(){
HIDEFIELD('fieldname72');
IGNOREFIELD('fieldname22');
HIDEFIELD('fieldname61');
SHOWFIELD('fieldname67');
getField('fieldname12').jQueryRef().removeClass('cff-collapsed');
getField('fieldname36').jQueryRef().removeClass('cff-collapsed');
EVALEQUATIONS(me.form);
}, 500);
Best regards.
Yes!!!! It works. Thanks a lot.