Thanks, but it is not the whole field I want to hide, just one option so the user can select options 1, 2 or 3 but only admin see and select option 4. It is for a membership site where the registration options are paid but in the background, there is also a free option that the Admin can allocate.
You can hide single options with CSS, but why wouldn’t you just use a separate field just for the admin?
It is a required field so we need an option.
<p><p>If it’s admin only and the end user has the option hidden on the front end and can’t see it, you could easily use a separate admin only field for the free option.</p><p>Doing it this way will be a lot easier than writing the code to use conditional CSS that hides the option of not an admin and show shows it when viewed by an admin. That’s a combination of PHP and CSS. </p></p>
The other options are required, it is for a business chamber, members apply and select a payment option depending on the turnover of their business. Using the value setting this then passes the amount to the email/invoice so it is a required field. There are also honourary members such as other chambers and diplomatic missions, these do not pay and are added by the admin, hence access to the free option.
Later down the line, a view is exported with the values so that the secretariat can reconcile invoices, we cannot have the honourary members with an amount value. I also have a search view where members can be listed by membership etc.
I could do a conditional field but it would be so much easier to just have the first three options visible to the general user and the last only visible to the admin.
I am comfortable with adding php and css, but as I mentioned above my brain is tired from working everything out every step of the way. My fault for trying to build this from scratch but I have tried and rejected a few membership plugins, each one seemed to throw up a problem that could not be worked around, not be user-friendly or too expensive to download on the off chance with too short a trial period (still waiting for a refund from one plugin). I am also designing for a not too technical secretariat.
For some reason, there are not many other sites with Formidable help so one is fairly limited to the Formidable documentation/tutorials. I am happy to be self-taught but every once in a while it just becomes a pain.
<p>But as a required field, editing will throw up an error if there is no value so to save the record I would need to select one option - ie, the hidden option.</p>
Please login or Register to submit your answer