Dec 12th, 2017, 9:45 PM
Hello everyone! I'm so glad to be here.
My issue is simple: Form Tool’s design only allows admins to create new forms, not clients. The programs native design also only allows for one admin account which also has the power to delete and edit all other users. I need to be that admin. However, the office staff I’m working with needs to be able to create new forms for their use. To solve this issue I have found and implemented a workaround seen here. This has given my other users the power to create new forms but has also given them the power to edit the Form Tools settings. This risks them messing up my setup. I would simply edit the menu settings from within the program, but the critical settings in question (i.e. "settings") is required for all admin accounts. Hence, I cannot take this privilege away from them while still keeping the power to make new forms. I know some PHP and if I could get an if statement working and identify the user id I could ensure that no one but me could access the settings page. However, no function I have yet written has allowed for anything but crashing the page outright for all users.
As I'm still new to Form Tools, I need some help understanding how to query and return the current logged in users account id or username so that I can make use of that information in the code. I also could use some help knowing where to put this code of mine. I will also be very willing to provide any further information asked of me to help clarify the issue and sort out any problems I haven't covered here.
Any help would be very appreciated. And thank you all in advance, both for the help and for making such a powerful tool free for us to make use of.
My issue is simple: Form Tool’s design only allows admins to create new forms, not clients. The programs native design also only allows for one admin account which also has the power to delete and edit all other users. I need to be that admin. However, the office staff I’m working with needs to be able to create new forms for their use. To solve this issue I have found and implemented a workaround seen here. This has given my other users the power to create new forms but has also given them the power to edit the Form Tools settings. This risks them messing up my setup. I would simply edit the menu settings from within the program, but the critical settings in question (i.e. "settings") is required for all admin accounts. Hence, I cannot take this privilege away from them while still keeping the power to make new forms. I know some PHP and if I could get an if statement working and identify the user id I could ensure that no one but me could access the settings page. However, no function I have yet written has allowed for anything but crashing the page outright for all users.
As I'm still new to Form Tools, I need some help understanding how to query and return the current logged in users account id or username so that I can make use of that information in the code. I also could use some help knowing where to put this code of mine. I will also be very willing to provide any further information asked of me to help clarify the issue and sort out any problems I haven't covered here.
Any help would be very appreciated. And thank you all in advance, both for the help and for making such a powerful tool free for us to make use of.