You need to sign in to do that
Don't have an account?
Begginer
Vf page button and trigger
can we execute a trigger when a button say 'submit' which is on the VF page is clicked, then the trigger should create a record on testobj__c
is it possible to do so? if so could anyone help me with the approach
Thanks in Advance.
is it possible to do so? if so could anyone help me with the approach
Thanks in Advance.
You can write a controller on submit of command button from visualforce page and write a code in controller to create a record.
Thanks !
Thanks for the quick response but I have a business login on the trigger that should be executed and if true a record should be created. so, how should I call my trigger on the above snippet?
Thanks !
Begginer,
If submit button is placed on your vfPage, then we will utilize the coding part in corresponding controller/extension.but Trigger only know events.when there will event occur, trigger will operate to fire.
So, As I already told you that, Trigger will not be called from submit button directly, Will discuss over call :)
Thanks
Rajat maheshwari
rajatzmaheshwari@gmail.com