I'm newbie in drupal. Yesterday I don't know what is drupal, but I need to do exercise.
I need to make a 3% tax on total order when paypal method is choosen. For now I create a tax but only for all products and I need to create also tax on shipping but I don't know how to do this.
I will be very glad if someone could give some hints how to achive that ;)
So FormBuilder has a buildForm and a getForm. Is the only real difference speed? On submit, i am looking to pre set the form with previously submit info. The get function takes the additional args param; however the build doesnt. So which should I use? Should I have a: if not submit? getForm; else? buildForm
I'm looking to change the default error message that comes with Login and reset password form. Is there any module available to do so, or do I need to write custom code for that?
For eg:
Login Form:
Need to change - "Sorry, unrecognized username or password. Have you forgotten your password?"
Reset Form: Need to change - "Sorry, abcd is not recognized as a user name or an e-mail address."
I have a requirement in durpal 8. Requirement as provided below
I have created a durpal module. It fetches the content from 3rd party APIs and drupal db. The output is created in twig files. We have requirement like the output of twig file need to be saved as html file which is used for google SEO crawling.
I can not keep the ob_start in twig files as php code not allowed in twig flies. So, Please provide other inputs.
I have a multi-page webform. In different places of the site a custom block is placed. It contains a form with two elements similar to those on a first webform page. After submitting the form it redirects to a webform page. My task is not only prepopulate webform elements values but to skip the first page if the user has already answered these questions in a previous form.
I see the solution as something of this kind: on form submit a new submission is created and put it into the webform. But alas all my trials led to nothing.