Hello, I need to keep the "edit mode" in the detail_cnt.htmpl form after saving a contact and then redirects to the "Notifications" tab included in detail_cnt form.
Thanks in advance!
While I do not think what you are asking for is possible, or even feasible, I think there's a simpler alternative. What if you made one of the Notifications tab fields required to save the Contact? That way if the end user tries to save, it should theoretically alert the user to the tab and expose the tab and the required field?
Why you would need to do this? Make sure some fields in notification tab are filled out before save and leave the detail_cnt.htmpl page? If this is the case, why not make those fields/attributes required in schema? Just my 2 cents.
I agree with the suggestions made by David-Ng and Chi_Chen - make the fields mandatory/required.
Hello, Paul_Coccimiglio & Chi_Chen sorry for not answering before!!!
I need that behavior because the "Notifications Methods" combo box filter according to the value selected in "Tenant" field while I'm creating a contact. So, the solution I think can work it's saving the contact with the tenant value and then reload the form in edit mode so that the "Notifications Methods" combo box filter with the values I need.
Thanks and best regards.
Hi Ana.Blanco ,
you can add to detail_cnt.htmpl this:
<PDM_IF "$args.id" == "0"> </script> <input type=HIDDEN name="STAY_EDIT" value="1"> <script></PDM_IF>
I will try what you suggest.
Sorry, where should I write that code in detail_cnt.htmpl? after the saving function? I've tried but *** seems doesn't work!
I just could test it today, because I was waiting for our customer!
Thanks and best regards
Yes, you need write this code on detail_cnt.htmpl, for example before <PDM_MACRO name=dtlEndTable>:
<PDM_IF "$args.id" == "0"> </script> <input type=HIDDEN name="STAY_EDIT" value="1"> <script></PDM_IF><PDM_MACRO name=dtlEndTable>
When you create a new contact and save it will be saved and stay in edit mode. Second time that you click on save it will be saved.
I tested this on SDM 17.1.
It worked for me on SDM14.1
I just made one change in the first line:
<PDM_IF "$args.id" == ""></script><input type=HIDDEN name="STAY_EDIT" value="1"><script></PDM_IF><PDM_MACRO name=dtlEndTable>
Retrieving data ...