adplus-dvertising
frame-decoration

Question

Which method is called right before a field is saved?

a.

onBeforeSave()

b.

BeforeSave()

c.

SaveBefore()

d.

None of the mentioned

Posted under JavaScript

Answer: (a).onBeforeSave()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which method is called right before a field is saved?

Similar Questions

Discover Related MCQs

Q. How many events does the BaseFieldType provide?

Q. When does the defineContentAttribute() method return a false?

Q. What is the purpose of the parameter $value?

Q. What does the method defineSettings() return?

Q. What is the purpose of the parameter $name ?

Q. Which is the method used to process on the input's post data before it is saved to the database?

Q. How many arguments does the getInputHtml() accept?

Q. What does the getInputHtml() return?

Q. What is necessary when we need to create a new field in craft?

Q. How do you specifically execute a command in JavaScript?

Q. How can you dispatch a synthetic event object?

Q. How can you create a node for comment in JavaScript?

Q. What is the function of the method importNode()?

Q. What is the purpose of the adoptNode() method?

Q. What is the purpose of the property width belonging to the ImageData element?

Q. What is the return data type of the property accept that belongs to the Input element?

Q. The lexical scooping in JavaScript is based on which of the following?

Q. Which function is used to stop the time logging?

Q. What type of scooping is present in JavaScript?

Q. Which of the following attribute of form tag is not set by using document object in JavaScript?