Hi All
So I have a Canvas App that I created a while back to upload documents into a SharePoint list. Everything is working as expected but now I have been asked to limit the document types that are uploaded based on employee title.
I have been told to limit the uploading based on title within the department. for example
I have the sales department and within that department I have 4 tiers / titles.
a. sales I
b. sales II
c. sales supervisor
d sales manager.
The executive team has recently decided that certain types of Sales made by Sales I and Sales II staff need to be reviewed by the sales supervisors before the documentation is loaded into SharePoint.
Only after review can the document for those sales be uploaded by the reviewer/supervisor.
In the past I have done this by just overriding the list of choices available in the choices column.
eg Choice's column has (choice 1, choice 2 and choice 3) in the canvas dropdown/combo box as follows
if(varTitle.value = A , ["choice 1"], ["choice 2","choice3"])
So because the choice made in the app matches one of the choices in the column, it saves without issue.
This time, however it is not working. I assume it has something to do with the fact that the available choices come from a lookup column rather than a choices column. It is a lookup column because the list was previously working with InfoPath and the creator needed to have cascading lists to show the documents by department.
What I am looking to do is only display in the dropdown/combo box those documents that each role can upload.
Currently when I submit the form it says it saved successfully but it does not save the document chosen in the combo box/ dropdown
Does anyone know of a possible way to get round this issue?
Thank you to all that respond.

Report
All responses (
Answers (