How to create validation in website_crm module contact us form in odoo13? - odoo-13

I have created two new fields in website contact us form. one is selection field and another is text field. based on selection field text field gets validation. Now i need know how to create exception or validation in website contact us form

Related

lotusscript put code in view of column mail database

It's possible to get in view of column mail database, (of course if is) #Author department (or somthig other information from adress book/ldap)? Formula? Domnio 8.53
No it is unfortunately NOT possible: #DbColumn and #Dblookup do not work in column formulas. If you need to display that information, you need to write it into the document (and probably check the validity of that i formation on a regular basis and refresh if necessary).
A view always shows documents. And these documents have items that store the information. You can only show information in the view that is stored in exactly this document that is shown. You can in NO WAY display data from any other document in the same row of the view not even from another document of the same type.
Your maifile e.g. contains documents of type "memo". They have information about the mail (from whom, sent to who, when, subject, body, etc...).
Your mailfile can also containt documents of type "contact". They have information about contact persons (first name, last name, phone number, department, etc...)
There is NO WAY to show information from a contact in a row of a view that shows a memo document. NO WAY.

Unable to save new record to the sharepoint list

I am creating a leave system for my company through Sharepoint. I tried customizing the edit form using powerapps. So when I fill all the records in edit form as shown in powerapp.png, and click on save button as in normal sharepoint form, my fields get reset to their defaults and i get 'entry required or invalid value'(see the attachment named 'powerapp.png') and the item isn't added to my sharepoint list.
However the record does get added to list if using normal sharepoint form as shown in normal_sharepoint.png.
Note: I have created a custom text field in powerapp.png which calculates me the leave days excluding weekdays and weekends. ( this is a major requirement)
Also I have enabled content-approval in my sharepoint list because the item is sent to manager for approval. Hence a content-type data field equal to 'Item' always shows up when I open the edit form in normal sharepoint and some unique id is autogenerated. However I enabled the content type field in powerapps too but still the same error.
powerapp.png
normal_sharepoint.png
You need to ensure you have filled out all the fields as those asterisked are Required fields.
Also on the datacard of each of the fields on powerapps, you can change the required property to false if any of the fields is not cumpolsory

PowerApps form doesn't save external data to SharePoint list

I've created custom form with PowerApps so when you click on New button in SharePoint you will see this:
This form is for SharePoint list Workflow but for column CostCenter I'm using external list Companies and Cost Centers where I'm filtering values based on selected Company (Cascading Dropdown).
I'm able to select data in those two fields correctly but when I hit the Save button in the form the value of CostCenter is not saved to Workflow list but everything else is.
So Title, Property Manager, Company, etc. except CostCenter is saved. I guess it's connected to that Data Source of each field but I don't know how to send those data from CostCenter to Workflow too.
Thank you for your help.

Microsoft Powerapps - How to connect to different datasource in one form

I'm building an app for TravelInfo. Here are the fields: From, To, City, Country.
I am using common data source entity. And for the country lookup, I want to use a sharepoint list, that has all the country names.
I'm stuck at this stage. As you see in the snap, I want to connect the country dropdown to a sharepoint list.
[I've tried to achieve the same with picklist. But Its not good to manually create the huge list of countries in picklist. Sharepoint list should be ideal.]
Here is the question: In one form, how can I use different datasource for different fields??? Please help.
A form will save the data card value defined in Update into the field defined by DataField. You are trying to change data displayed on the dropdown which is not set in the Fields list you have above. Try the following (the first few steps may already be completed based on picture):
Check Country to insert data card into form
Select data card and under Advanced properties click Unlock to change properties
Delete text box from data card that was added by default
Select data card and insert desired control (drop down box)
Select drop down box (not data card) and under Advanced properties define Items and Value to populate values from the sharepoint list
Select data card and change Update to desired dropdown value that should be saved e.g. dropDown1.Selected.country_id
The drop down box can display the Country text on the form, but then save an associated value such as the country id.

Dynamics CRM 2011: Extended lookup for a field in "Create New" form

I have the following scenario:
A user wants to create a new record of entity CustomEntity1. One of the fields on the "Create New" form is a reference to the entity of type CustomEntity2.
Now, there is a built in lookup where thety can search by name, or filter the options to a predefined view. This doesn't help, because the user needs to get the name (or names) of CustomEntity2 which satisfies a set of criteria based on the fields in CustomEntity2.
Is there a way to incorporate this in "Create New" form for CustomEntity1?
And the question again, a bit less abstract:
The user needs to create a new record of type CustomerAccount. In doing this he/she needs to fill a field called Group. This should be looked up in a list of existing groups, based on several criteria - Type, Region, Budget and so on. Is there a way for the user to enter this criteria while creating the new record, and not go separately to the list of Groups and run a report to find the candidates?
You can use the addCustomView method of the lookup control to filter the options based on the fetchXML and layoutXML that you provide.
One way to supply the right conditions to your custom fetchXML is to duplicate the Type, Region, and Budget fields in the CustomerAccount form, so that when the lookup dialog is opened, it filters the existing Groups based on the values you've selected in the CustomerAccount form.

Resources