Thanks Adam!<div><br></div><div>I was adding fields throught module manager, but i knew i could do that on code. What i'm trying to do is to show especific fields for each event type. For example, Call type will show fields A, B and Meetings B,C.</div>
<div>My idea is to maintain all fields for each event type on the database and hide the fields i don't want to show on the code but i'm having trouble to work with the JavaScript of Calendar.<br>I'll try to figure out something and then i post on the list!</div>
<div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Fri, Dec 16, 2011 at 1:36 PM, Adam Heinz <span dir="ltr"><<a href="mailto:amh@metricwise.net">amh@metricwise.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote">Calendar is a bit of an odd module -- it is represented as two modules in the database: Calendar (To Dos) and Events (Meetings and Calls). I have used vtlib in the past to add a field that shows up only for Meetings but not To Dos.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote"><div class="gmail_quote">$field = new Vtiger_Field(); </div><div class="gmail_quote">// Configure field here</div><div class="gmail_quote">$module = Vtiger_Module::getInstance('Events');</div>
<div class="gmail_quote">$block = Vtiger_Block::getInstance('LBL_CUSTOM_INFORMATION', $module);</div><div class="gmail_quote">$block->addField($field); </div><div class="gmail_quote">$block->save($module); </div>
<div><br></div><div>We don't use Calls, so if you are trying to differentiate between Meetings and Calls, this may not work for you.</div><div><br></div></div><div class="gmail_quote"><div><div class="h5">On Thu, Dec 15, 2011 at 8:35 AM, Nathalia França <span dir="ltr"><<a href="mailto:nath.campreguer@gmail.com" target="_blank">nath.campreguer@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hello,<div><br></div><div>I'm trying to customize the calendar module on Vtiger 5.2.1. I want to change the fields that show up when i register an event. </div>
<div>I've tried to change some codes behind the module but i haven't been succesfull yet. I also wanted to know if it would be possible to show different fields on each event type because when i create a custom field it gets visible for all event types.</div>
<div><br></div><div>I know i can add and disable some fields <font face="arial, sans-serif"><span style="white-space:nowrap">on settings menu but what i need is to change/disable the fields that "field access" doesn't allow me to.</span></font></div>
<div><br></div><div> <br clear="all"><div>Thanks!</div><div><br></div>Nathalia Campreguer França<br>
</div><div><a href="mailto:nath.campreguer@gmail.com" target="_blank">nath.campreguer@gmail.com</a></div>
<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Nathalia Campreguer França<br>
</div>