Drupal 7 form message not displaying in custom page - drupal-7

I am using drupal 7 and I have a custom page page--user--login.tpl.php where login form and registration form are present in the same page.
When I click the "Sign in" button without filling in the fields, it is only highlighting the required fields. Error message is displayed when the "Sign in" button is clicked the second time only.
The code I used in page--user--login.tpl.php is as follows:
<?php
print(drupal_render(drupal_get_form('user_login_block')));
?>

Related

Cakephp - Popup to confirm existing entry

From my template, when I click on submit, I have to check if one of the fields of my form exist in another table yet and if it's, show popup with OK/Cancel
How can I do that?

how to set focus to an input element when page gets scroll in ios?

I am working on a project based on angular and ionic. I have a page consisting of sign up form. It has four fields namely email,mobile no, password and confirm password.The issue I am facing is that when I tap on confirm password field then keypad gets open and page gets scrolled. then confirm password field loses its focus. cursor is not get set to that field as well as whatever I typed on keyboard is not get shown in field unless I click outside.

Multi form validation through parsley.js

I am facing an in asp.net while implementing parsley.js. I am having a master page in which there is a form tag where i pass data-parsley-validate. In slave page there are 3 forms in which two is optional for user to fill up . When i applied validation and user clicks on submit button . Parsley validation occurs on all 3 forms . I just want to occur on single form. As asp.net support only one form tag for the form . how i can apply this validation on my 3 blocks individually.

Return URL to redirect list view which is visualforce page

i have 1 custom object test_2__c and i created tab of it.
i have overridden this tab with a visual force page (tab redirect).
<apex:page action="{!URLFOR($Action.Test_2__c.List,$ObjectType.Test_2__c)}"/>
and i have 1 list button called "New". it is a button URL.
{!URLFOR($Action.Test_2__c.New)}?returnURL={/apex/tabredirect}
so when i click on this button from list view it opens an edit page for inserting a new record (The standard salesforce edit page, i didn't override it).
Now I am facing an issue here, when i click on "cancel" button from edit page, it remains on that page, i want to redirect it to list view which i have overridden with the visual force page.
Have you tried adding a cancelURL parameter to the URL? For example, you can send the user to a new visualforce page on cancel with the following parameter
...&cancelURL=/apex/YourApexPageNameHere

Custom Button on new Opportunity Page that links to Visualforce Page on Save

I've encountered a customers sandbox where the standard "Save" and "Save & New" buttons have been replaced by a "Save & Add Brand" button on the standard new opportunity page. They have renamed Opportunity Line Items as Brands and have renamed the Products tab as such.
When pressed, the button saves the Opportunity (after validation of required fields etc...) and then redirects the user to a custom Visualforce page for entering the Brand details. The Visualforce Page they arrive on is configured as the override for Opportunity Product standard button AddProduct.
How has the "Save & Add Brand" button been added to the New Opportunity page to replace the standard buttons?
I need to add some additional buttons but can't find where it has been configured.
Under Customize > Opportunities > Buttons and Links > Standard Buttons and Links New is not showing any override. Also, if I add ?nooveride=1 to the URL I get the same page with the custom button. Edit has been overridden but that Visualforce page isn't the one being displayed to new (as expected).
There is no Detail Page Button on Opportunity with a label corresponding to this button.
Go to Setup > Customize > Opportunities > Settings and disable "Prompt users to add products to opportunities"
Details: Salesforce Help & Training: Prompting for Products on Opportunities
Note: If enabled, replaces the Save button with a Save & Add Product
button [on] the opportunity creation page.

Resources