Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ConfiForms Form Definition
formNamef
true

 

messageWrite your messagetextarea

confirmConfirmcheckbox

confirm:trueshowSaveButton();Run custom JavaScriptconfirm

confirm:falsehideSaveButton();Run custom JavaScriptconfirm

Done with the help of this Javascript

Code Block
<script>
function showSaveButton(){
  AJS.$('button.save-cf-btn').show();
}

function hideSaveButton(){
  AJS.$('button.save-cf-btn').hide();
}
</script>

 

and  and 2 field definition rules: 

 

Set on field "confirm" and Condition is set to

Code Block
confirm:true

  

Image Added

Another rule

Set on field "confirm" and Condition is set to

Code Block
confirm:false