Drupal 6 How to hide fileds on creating content but show on editing content? - drupal-6

I have two fields, start date and end date. I want to hide end date while adding new content and want start date not editable on editing and show end date to edit. How I can do that in drupal 6 node module?

use form alter and you can user url paramters to see if it is add or edit form
If Add Form say
$form['start_date']['#access']=false;
and skip the same in edit form

Related

How to add searchable field in Drupal 9 backend

In my Drupal 9 dashboard I can search different content based on following field:
I want to add one more field, let's suppose "name" field, where I want to search all names. How I can add one more field here?
Its a view and you can configure it. GoTo /admin/structure/views/view/content and add filters on the left bottom side.

How to add the note in the history tab for a NetSuite form?

Every time I edit the form, there is no any text appears in the "NOTES" field of "History" tab.
Please refer to the following picture:
How can we add notes for the update?
You cannot. That field is automatically set by Netsuite and we don’t have access to it

Netsuite Inventory Item Custom Forms keep changing

We have created a custom form for certain inventory items in Netsuite. When we want to go back and edit that inventory item, it automatically goes back to our default custom form. We manually have to change the form back to what we want to use each time we edit these types of items.
Is there a way to have it so when these specific items are opened to edit that it will always go to the custom form that we originally created it on?
No need to create a workflow/script. You just need to set the custom form to "Store Form with Record".
Customize the form and checked the option that says "Store Form with Record".
Every time you create an Item Record select the form and fill in the necessary information and save it. After saving it the form will be automatically saved with the record and it will be used every time you edit and view the record.
Definition of "Store Form with Record"
Check this box to store this custom form with each record entered with this form.
This ensures that your records are viewed and edited with this form regardless of who is viewing or editing the record.
Options:
1. Add the custom form to the menu and choose that menu item when editing those types of inventory items.
Write a workflow (SuiteFlow) that opens the correct form based on the inventory item type.
Write SuiteScript that will open the correct form based on the inventory item type.

How to remove Text field from Form in J2ME

Hey Hi Friends,
I have created one application where in one text field i am getting input from user as id and according to id i am displaying the information. At run time i am adding another text fields but suppose user inserting wrong id then i want remove all text fields from Form. it is possible to remove text fields which added previously.
I am not sure what you are trying to achieve here but Form.delete(int itemNum) and Form.deleteAll() will allow you to delete Items that have been added to a Form.
See Form documentation.

Hide field in SharePoint alert email

How can I hide a field in a SharePoint alert?
I have a custom event list (Calendar). I have a field (of type Note - aka Multi-line text) whose XML contents I generate manually in an event receiver. All my calendar views use this field as the Title for the Month, Week, and Day views.
I have a web part I include on the page that runs a jquery script that converts the XML title into a background color and mouseover text.
The problem is that this field and its ugly xml show up in sharepoint alerts. If I set the field to Hidden=true then it does not show up in the email, but it is no longer available to select as the Title for the Month, Week, and Day views when creating a new View. This is not acceptable as users need to be able to create views and be able to select this field as the title.
Is there another way to prevent this field from showing up in emails, along the lines of ShowInDisplayForm, ShowInEditForm, etc?
Would editing the fields in the alert template fix your issue?
http://blogs.msdn.com/sharepointdeveloperdocs/archive/2007/12/07/customizing-alert-notifications-and-alert-templates-in-windows-sharepoint-services-3-0.aspx
"To exclude some fields from being rendered in the email, you should include them in the <DigestNotificationExcludedFields> and <ImmediateNotificationExcludedFields> section."
Can you set another field to have that XML and have the jquery script run against that field instead? That would leave the Title field to be used normally.

Resources