Hi again,
Connected to the above mentioned problem it might not be a problem of the script but in my logic. Obviously when the user hits ADD button on the submissions view page they create a new submission and they are redirected to the edit page for this new submission (which is already saved). After filling down the fields should be pressed UPDATE button to save the values. By pressing the ADD button the user automatically save the present submission (no matter if there are some required fields left blank) and create a new blank submission.
That's the way the script works here.
Because it's a little bit confusing for me, I suppose it would be the same for a part of the clients. To overcome it I would like to ask how I could remove the ADD button from the edit submission page and in this way to force the client to hit UPDATE button. - SOLVED - edit_submission.tpl in themes\default\clients\forms
And one more question which is important for me...
I've searched throughout the whole forum and documentation but I couldn't find out how to set the client ID into a hidden field in a form.
I need it to be able to limit the clients to be capable to view, edit and delete only their own submissions. I saw the solutions which had been proposed by Ben such including non editable or hidden field with some string and creating separate views for all the clients using the standard filters.
However if we have more forms and more clients I think it wouldn't be the optimal choice. It would be better the hidden field to be set to obtain the client id and the client map filter to be used. In that way we would be able to create only one view for every "category" of clients and limit them to work only with their own submissions. But unfortunately I can't figure out how to do it.
Thanks all who were patient enough to read my boring post.
Best regards
Yavor
Connected to the above mentioned problem it might not be a problem of the script but in my logic. Obviously when the user hits ADD button on the submissions view page they create a new submission and they are redirected to the edit page for this new submission (which is already saved). After filling down the fields should be pressed UPDATE button to save the values. By pressing the ADD button the user automatically save the present submission (no matter if there are some required fields left blank) and create a new blank submission.
That's the way the script works here.
Because it's a little bit confusing for me, I suppose it would be the same for a part of the clients. To overcome it I would like to ask how I could remove the ADD button from the edit submission page and in this way to force the client to hit UPDATE button. - SOLVED - edit_submission.tpl in themes\default\clients\forms
And one more question which is important for me...
I've searched throughout the whole forum and documentation but I couldn't find out how to set the client ID into a hidden field in a form.
I need it to be able to limit the clients to be capable to view, edit and delete only their own submissions. I saw the solutions which had been proposed by Ben such including non editable or hidden field with some string and creating separate views for all the clients using the standard filters.
However if we have more forms and more clients I think it wouldn't be the optimal choice. It would be better the hidden field to be set to obtain the client id and the client map filter to be used. In that way we would be able to create only one view for every "category" of clients and limit them to work only with their own submissions. But unfortunately I can't figure out how to do it.
Thanks all who were patient enough to read my boring post.
Best regards
Yavor