========== can_create ========== .. js:function:: can_create() **domain**: client **language**: javascript **class** :doc:`Item ` Description =========== Use ``can_create`` method to determine if a user have a right to create a new record. This method takes into account the user permissions set in the :doc:`roles node ` in the Application Builder when the project :doc:`safe mode parameter ` is set as well as the values of the :doc:`permissions ` attribute and the value of :doc:`can_modify ` attribute. Example ======= .. code-block:: js if (item.can_create()) { item.view_form.find("#new-btn").on('click', function() { item.append_record(); } ); } else { item.view_form.find("#new-btn").prop("disabled", true); } See also ======== :doc:`Parameters `