Create Hidden Fields in User Profile - drupal-7

I've successfully created a custom user field using the code referenced here.
I'd like the field to be formatted "Hidden" per the Account Settings page. I've set the type to hidden on the field instance but it's not hiding. Any idea how to program this field as hidden in my module?

You can achieve that using Field Permissions module.
You can configure the field appearance the way you want.
Hope that helps... Muhammad.

You can use hidden field module

Related

Iframe content not able to save in module params Joomla

I am using Joomla3 with tinymce editor. I have created one module and adding one params in textarea
I am adding iframe code
in text area
but it's not saving. If i am save normal text string then it's saving
Please help me
I believe you need to add a filter to your xml code.
such as:
filter="RAW" or, probably more appropriately, filter="HTML"
This will keep Joomla from cleaning your code. There are a number of filters available to XML fields when creating modules. You can examine the code here: https://github.com/joomla/joomla-cms/blob/master/libraries/joomla/filter/input.php#L167 to see the exact list.
What user group is the account you are using a member of? Super Users and Administrator group types should have no filtering set by default but it sounds like you might need to edit those settings.
From the main menu:
System > Global Configuration > Text Filters (tab)
You will see all the available user groups for you website. The group your user belongs to should have a Filter Type of No Filtering. Another important note is its better to add the user account to a group with the permissions then to arbitrarily adding it to a group type typically reserved for registrants, guests or low-level editing.

How can I echo the label of a salesforce custom object on a visualforce page?

I want to access the metadata of a custom object and display the name of the custom object. This has been changed from the original and I want my page to always display the name without having to change any code or markup.
A label can be accessed as {!$Label.MyLabel}.
Is there something akin to {!$MyCustomObject.Label}?
Any ideas?
Yes you can do this via the Global Variable $ObjectType i.e.
{!$ObjectType.CustomObjectName__c.Label}
also for these types of questions try the salesforce Beta, salesforce.stackexchange.com

How to auto populate email address in text field using extjs 4.1?

I have done application using Extjs4.1, it contains feature login page. for email address and password field using text box field. Here i need to add feature, auto populating of email address who recently visited. In other application like java etc it is default property populates email address in text box field. Can any tell me is it possible or not in extjs? How to achieve this one ? great appreciate. Thank you.
You need to config more as part this feature, You can able to refer below link, which contain demo.
http://dev.sencha.com/deploy/ext-4.0.0/examples/form/forum-search.html
I hope this will help.
Thanks.

Create new field type for custom content

I want to create a new content type called "Message". It will have a couple of fields, "message-body" which will be plain text and "addressees". The addressees field should reflect a list of the registered users of the site.
The idea is to create a field type that will be a checklist where all users of the site can be selected, and those that are will receive the message in "message-body" via drupal_set_message($msg).
I am not suceeding so far in creating a custom field type. The Field API documentation is not very clear.
Thanks.
You maybe already found the solutions for you problem.
I think in your case you can use Entity Reference. In your custom content type you can create a new field with the Entity Reference type. Then on the configuration page you can choose which entity to reference, like node, taxonomy or users, with different types of widget.
Here's a link of the Entity Reference module.
Why not make a content type via the menu interface www.yoursite.com/admin/structure/types/add.
Or you need it as a module that you can re-distribute?
An easier way then is to make use of features. It allows you to 'export' a built content type into a module. Enabling the module (on another site), then creates all the fields that where in the export.

Show Opportunity Stage Name Picklist read only based on user role

I am new to Salesforce and need an idea how is possible that suppose I have one user named "ABC".I don't want to show the Opportunity StageName picklist when "ABC" user login in editable form or just want to show the StageName value in textfield or anything other.
I tried to set the permission under setup but not achieved what I want. I just came to know that formula field or formula will used for that, as I am new to Salesforce so I unable to create a formula field.
Thanks.
To achieve this You should try field level security settings:
https://login.salesforce.com/help/doc/en/admin_fls.htm
You can select per field /profile combination which fields are visible and which are editable.
You cannot apply FLS on system required fields neither can you make them read only on the page layouts. You also cannot remove such fields from page layout. In short you are stuck with this field for ever!
I wish Stage was not a required field.
Mitesh

Resources