Custom Save buttons No Longer Working

I have tried to fix this and two other buttons, with no success. Plain text reformatting, as well as manually typing - still adding double quotes where single quotes are typed.

fd.spBeforeSave(function() {
fd.field('requestreview').value = 'SAVE - Come Back Later';
});

fd.save();

OnClickJSButton

UPDATE:

When I remove the fd.save(); the error, I can save without closing, but it I keep the fd.save(); in place, I get the longer error in the screenshot above, or this: "Cannot set property 'value' of undefined"

@shedev,

In button's Onclick you need to use return fd.save() to save the form. Please find the updated code below.

fd.field('requestreview').value = 'SAVE - Come Back Later';
return fd.save();

Margarita,

Thank you as always for your stellar help. You are appreciated.

I am still seeing the "Cannot set property 'value' of undefined" error. I am perplexed because this worked until recently (a few days ago), so I am trying to figure what conflicting field or code is causing the error.

Do you see any glaring issues with my settings/code?

ClickError

CSS_Styles

JS_Empty

I figured this out. I removed the field and replaced it. The custom save buttons are working now.

1 Like