Has anyone discovered a way to add an alert() or confirm() window to a Nintex form when a user tries to change the content type of the edit form using the 'change content type' control?
alternatively is there someway to force the user to save their changes on one content types form before changing content types?
You mean adding it to the settings of the form when i modify the form per content type?
I have 6 content types in my list and the user may need to make updates on anyone of them.. I need to prompt them when they change the content type to save first..
Am I right Fernando Hunth that your suggestion is to have the prompt come up when they initially open the form?
If the user needs to update all content types, may I suggest to review them and put the common fields in a common Content Type, it will be less painful for them, or maybe it is too late or you have inherited of that design and I can understand.
The user generally doesn't have to update more than one content type but there needs to be the flexibility to be able to update information across content types. I have added some fields to the default content type that i know someone will try to navigate through content types to update, but still with that potential i need to eliminate the possibility of user error and therefore users losing their data.
Hope that makes sense!
I am working with O365 and apparently I cannot add the Content Type Control to a Nintex Form.
Can you add a screen shot to make sure I understand it well.
I do not know if this can solve your problem but it works for a simple dialog list in O365.
var selectedContentType = NWF$('#' + ddlContentType + ' option:selected');
var strAnswer = confirm("Click OK if you you have already saved. Click Cancel if you need to save before switching to another content type.");
if (strAnswer == false)
selectedContentType .attr("selected", true);
selectedContentType = NWF$('#' + ddlContentType + ' option:selected');
ddlContentType is used in the Control Settings of the Content Type Control - Advanced Section
Hope it helps
Just trying to test out your reply but getting a little stuck.
I cannot check more as the present time, I do not have acces to a SP on Prem.
But one idea from this post, is to create your own drop down box.