Closed (fixed)
Project:
Drupal core
Version:
8.3.x-dev
Component:
forms system
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Dec 2017 at 10:36 UTC
Updated:
4 Nov 2019 at 16:24 UTC
Jump to comment: Most recent
Comments
Comment #2
saranya ashokkumar commentedComment #3
cilefen commentedHello @saranya purushothaman: Nothing can be done without a look at the code.
Comment #4
cilefen commentedComment #5
saranya ashokkumar commentedHi cilefen,
Thanks For Your Reply!
Actually what I need is, I want to create a confirmation form for node save like delete.
Comment #6
cilefen commentedTry the documented way: https://www.drupal.org/docs/8/api/form-api/confirmformbase-to-confirm-an...
Comment #7
saranya ashokkumar commentedI have tried that. For delete operation, they are declaring this class in annotation of the entity("delete" operation) or by hook_entity_type_alter().
I want the same for save. But in annotation operations of entity, there is no save operation to define my class.
Comment #8
saranya ashokkumar commentedComment #9
cilefen commentedHi. Please be aware that we do not normally work on support requests in this issue queue—there are forums and stack exchange for that. If you think you have identified a bug in Drupal core, please identify how to reproduce it. As yet you have not posted any code so there is not a way we can help except to point you to documentation.
Comment #10
qqboy commented$(SAVE_BUTTON).click(function(){
if(confirm(Drupal.t("MESSAGES?"))){
return true;
}else{
return false;
}
});
Comment #11
bhanuprakashnani commentedComment #12
bhanuprakashnani commentedPlease give me steps to follow to solve the issue. Haven't got a complete idea. Thank you.
Comment #13
rutuj commentedYou can create a webform "confirmation form" and use "rules" module to add a action before saving new node.
Action could be:- redirect to path. In our case it is "confirmation form".
Comment #14
avpadernoI am closing this support request as per comment #9. If you need support for sites you maintain/develop, or for modules you develop, ask in the forums.