Lock field | hide from user

More
12 years 7 months ago #25375 by igcorreia
Hello,
this is a nice featured, I need to create a TICKET alike system, with flexi I can do everything BUT I cannot generate an TicketNumber automatic, if we could add some PHP to the text field a LOCK IT from users would be nice.

The php request is here:
www.flexicontent.org/forum/index ... =viewtopic

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #25377 by igcorreia
For example I want to add the PHONE NUMBER to the template so it can appear in all pages but it is a static field.

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #25380 by igcorreia
Another trick would be to add a field that I code add this php:

include "somecomplexcalculation.php"

becouse if I change the template or update flexi I have to refacture the templates GRRRRR so much work :D

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #25392 by ggppdk
Replied by ggppdk on topic Lock field | hide from user
mmm, you can create a new field, and then use the plugin function:
onBeforeSaveField(...)

To add the code that creates your ticket number
e.g. you use SQL query to check for maximum number of current $field->id of all items and increment it by one and/or do other things too.

But this is good idea, open a issue in bugtracker


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #25396 by igcorreia
I see. That's a great tip thanks. So there we can EXECUTE any PHP/SQL we want.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.428 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline