Using orchard how to display content itmes & send email to user - orchardcms

Using Orchard 1.6 i've setup 3 content parts, each viewable from 3 separate forms, which will automatically navigate from 1,2,3 as the user fills them out (by selecting the booking option on the main menu):
1) Records Name & phone number as input fields
2) Records equipment user has selected to rent (from drop down and input fields)
3) Confirmation which should display what the user has entered on the first 2
So far im on part (3) so I want to display what the user has chosen for the first 2 forms (I know they are stored as content items) but how can i get both of them to display on the confirmation page.
Also when the 'Submit' button is clicked on the confirmation page i would like to send an email to the owner. How can I do this?
Thank you

Use the rules module (workflow in 1.7+) to send an email when the content item is created.
To display the data you could create a simple little module that displays the latest two items created by the current user. Or something. I've never really used Orchard Forms so I'm not sure if it has better ways of accessing content you have created with it.

Related

How to use an InputBox with a table - Domino Designer

I would like to create a button which then opens an inputbox, the user then inputs a message, and then I would like to create a table with there name & the message in, on the same form.
Is this possible in Domino Designer?
Formula?
LotusScripts?
Not knowing the proper use case, and expecting that more than just one user will be able to click that button for a single document, let me recommend a slightly different solution:
I tend to solve these by using a simple multi value text field, make it computed when composed. Then if a user enters a message I append (or prepend) a new line to the list field like in
[Lothar Mueller, 2015-05-01 15:00:01]: this is my message

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.

Display the responses to the current form inside an embedded view

I am trying to create a new Lotus Notes Database (classic, not using XPages) using the Domino designer which will be used to manage customers and orders.
As orders belong to customers, I implemented orders as responses to customers (this seems to be the only way to create a hierarchy).
Now, the form representing the customer should contain a view displaying all the orders which belong to the customer.
However, I don't know how to implement this view:
First, every embedded view based on a formula (I tried SELECT (Form = "Order")) creates an error message: "Unable to launch at this time".
Second, I have absolutely no idea how to restrict the result to responses to the current Form (in my case: Showing only the orders belonging to the current customer and not all orders in the database).
To embed the view in the 'customer form', open that form, place the cursor on the place you want the embedded view, and from the menu select: Create -> Embedded Element -> View...
Select the view you want to embed, and click 'Ok'.
Now, to show only orders for current customer, you will see in the Objects tree list 'Embedded View' with 2 option, select the second 'Show single category'. There you can specify with formula only the current customer. For example, to show entries only for the current logged user I would put:
#Name([CN]; #UserName)
Hopefully, this info will help solve the problem.

Implement the string function in InfoPath 2010

I have designed an InfoPath 2010 form with two views and published in SharePoint 2010 form
library thru central admin.
The two views are:
Data Entry View
Read Only View
Condition is: After submitting the Data Entry view if the same user try to open the form it
will redirect to Read Only View. In my data entry view i have user full name field, so
i am not dealing with username() only, i am dealing with user full name. For example when the form is opening full name is displaying on the form: like Sumit Kumar, For this empname Windows logon name is: sumit_k
Now how can i set the rules in infopath, so that more than one time user can not submit the form. There are so many condition in rules: like contains, begins with, matches pattern, is present etc.
How can I implement the above logic based on rules?
You just have to use a "Form Load" rule.
If i understand correct the user full name field will not be empty after you've submitted the form.
If this is so you can check if this field is empty or not when the form loads.
So make the rule like this
New Rule - Action Rule
Condition - "name of you username field" is not blank
Run these actions - switch views (pick your read only view)
Now everytime your form will be opened this rule will be triggered and if the username field is empty you'll get your default Data entry view. When it's filled in you will get the read only view.

excel spreadsheet data to web form

I'm looking to place my company's trailer inventory on a few free classified ad sites. Our inventory database (filemaker) can export data into an excel spreadsheet (column A-Make, B-Model, C-Year, etc.) including the URLs of the photos of each trailer.
Our dealer sites allow for bulk uploading through XML and that works great.
My problem is on the smaller free classified ad sites that have a web form that needs filled out (the example I'm using here has text fields and drop-down menus, but other sites have check boxes and radio buttons) then submitted for each individual trailer (about 90 trailers). I'm wondering how I can use the data in my spreadsheet to auto-fill the form with the information in row 1, submit it, re-navigate back to the form and repeat the process with the info in row 2 and so on. I know that I'm going to have to tailor my data and columns to fit each site (match column names to field names and change relevant data to match drop down options, etc.).
**edit Also (although not necessary) it would be nice if it was possible to have my photo URLs entered as well (if at all possible).
I've created a "test" account on http://www.horseclicks.com. Once logged in you have to click on "My Trailers" on the left and then the "add" button
user: excelhelp
pass: excel
Any takers??
This doesn't completely answer your question, but would save you some time entering the forms manually. If you know the names of input tags on the form you want to fill out, you can write a Javascript that will fill out the form for you: i.e., document.getElementById('your_name').value=Name[x]; etc.
In that example, Name would be an array that would contain a list of the names you wanted to put in the input field "your_name". You can easily turn an Excel sheet into a Javascript array by exporting to CSV and cut/paste into your code. Make it so that the value of x increases by 1 each time the script is ran.
Take your whole javascript, and turn it into one line that starts with "javascript:" and place this as a bookmark in your toolbar. Now you can go to the form, hit the your bookmark button and it will fill out the form. Hit submit, go back to the form, hit the button again...

Resources