• Joomla 5.1

    For running J!5.1 you must install Fabrik 4.1
    See also Announcements

  • Subscription and download (Fabrik 4.1 for J!4.2+ and J!5.1) are working now

    See Announcement
    Please post subscription questions and issues here

    We have resolved the issue with the J! updater and this will be fixed in the next release.

run eval options code only on new record?

prophoto

Active Member
Any suggestions how I might prevent eval options code from running when I edit a record? I have a CDD which removes a bunch of the dropdown options. It works fine, but now we only want it to run when we are adding a new record, not editing an existing record.
 
I haven't done anything like this myself, but if it were me I would see if the eval code can identify the value of the primary key and act based on that. A new record will either not have a primary key value or it will be something like zero, whilst editing an existing row will have a primary key value.
 
Back
Top