If you click to edit the any list record the JS is hiding elements based on "categoria" value as supposed. But when in form view JS is not working properly because is showing all the elements
Not sure what you mean. Editing a record *is* form view. Do you mean detail view?
Please give me EXACT steps to replicate issues. "is not working properly" doesn't tell me anything. Tell me which row to view, what element should / shouldn't show, which element the JS should be on, etc. PLEASE remember I know nothing about your site, it's complex, and the more details you can give me on exactly what and how to test the better.
Also the map element when viewing or editing any record it appears for a few seconds and than retrieves the error "Ups ! Error occurred. This page has not properly loaded Google Maps. See JavaScript Console to Get Technical Details"
You have to supply a Google Maps API key, as of a few months ago. It's a change in Google's policy. Set it in the Fabrik global options.
Get the following error on top of the list:
- "Notice: Undefined variable: nconduta_text in C:\xampp\htdocs\plugins\fabrik_element\calc\calc.php(367) : eval()'d code on line 14"
- This error is related to the php code I'm using in the calc element "doc_em_falta", but in the previous version works ok!
That's just an error in your code. It probably didn't show up before because you didn't have error reporting set to maximum, so notices didn't show.
You only set $nconduta_text if $nconduta is '0' ...
Code:
if ($nconduta == '0'){$nconduta_text ='? Normas de Conduta ';}
... but then you use $nconduta_text regardless later on in the code ...
Code:
$doc_falta = $nconduta_text . $cert_hab_text . $ced_prof_text . $resp_civil_renov_text ;
... so if $nconduta isn't '0', it never $nconduta_textgets assigned, so you get the "Undefined variable" notice.
You need to assign it a value (like an empty string) when it isn't 0 ...
Code:
$nconduta_text = $nconduta == '0' ? '? Normas de Conduta ' : '';
... so it's defined when you use it later on. Same for those other variables you are setting up.
- In the list when I click in the data of the column "Nome" the Custom link does not work (the link refers to .../candidaturas form view records)
You hard coded a fully qualified link in your 'custom link' on that element, with
http://yoursite.com prepended, to a different site. Which a) is going to the wrong site, and b) won't work because browsers won't let you do cross site browsing via AJAX. Just remove every before index.php, so it's a relative link to the same site the page is on. The link will then get automatically SEF'ed by Fabrik, by running it through J!'s JRoute::_() method.
-- hugh