-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
“Land” field in onOffice enterprise is a single select but it is output as input field in plugin and frontend #540
Comments
@fredericalpers |
Thank you for investigating. I will lock this issue and push it to the next cycle. :) |
Hi @fredericalpers, I have a few questions that need your clarification:
|
In search forms also the "land" field has to be used.
|
Yes, I will implement it. Thanks! |
I have one question: If you don't want to change the name of "Land" to "Country", what do you mean, please explain to me. |
@dai-eastgate you can ignore that part. I will edit it out of the original issue. :) |
Hi @fredericalpers , I would like to confirm some points with you:
Reason: on your backend when generating email content, the "Land" field only accepts the value as "short name lowercase". |
@dai-eastgate If I'm not confusing it myself right now, the field that is not displayed is the different "land" field. As mentioned in the comment above there are two different fields. Can you confirm this? |
@fredericalpers "short name lowercase" is short name lowercase of ISO code We seem to find a solution for the "change the field 'Land' to a single select in both frontend and backend" issue work fine("Land" field display normal even in content email ) |
@fredericalpers We don't find it in the API doc this link |
@yeneastgate I will get back to you as soon as possible, thank you. :) |
@yeneastgate please check the following links if any of this is helpful otherwise I will send a ticket to our IT-Department for clarification: |
I have researched, implemented and found the following problems: When creating a contact address record But actually, if I submit the "Land" field as "ISO 3166-1 alpha-3 value", I can create a contact address record on the enterprise according to the name of the country we submitted, but the mail does not show that field. cmt.mp4If I send the “Land” field as "the German-translated country name", then I can create address in both contact and email With the API doc you send me: So I guess, the current reason is that when generating email content, the "Land" field shows only "the German-translated country name". Please check with your IT about these problems and let us know about your opinion. Thanks. |
postponed for now, since I'm still waiting for more information. |
We would like to split this issue into two issues. Before we do that we would like to confirm if the following is possible: Since there is a problem with using ISO 3166-1 alpha-3 for the mail transmission, we would like to skip this and instead just transmit the value (e.g. 10 for france) in the mail for now. Would this be possible? |
@fredericalpers Yes, let me try again and report back to you with the clearest results |
(1) What is the GET request to get all available countries for address records?https://apidoc.onoffice.de/actions/datensatz-anlegen/adressen/ The following request can be used to display the values for the "Land" field:
(2) How do we have to write a post request to create an address record with a country?https://apidoc.onoffice.de/actions/datensatz-anlegen/adressen/ For country, simply enter the ISO 3166-1 alpha-3 value such as "DEU" for Deutschland or "AUT" for Austria.
|
|
@fredericalpers yes, I can display the values for the "Land" field When calling this API |
@fredericalpers I created an address record with a country When entering the ISO 3166-1 alpha-3 value such as "DEU" for Deutschland |
@fredericalpers However, when I enter the ISO 3166-1 alpha-3 value such as "DEU" for Deutschland, the "Land" Field do not show the value in the email content.
ex: I enter the ISO 3166-1 alpha-3 value such as "DEU" for Deutschland Please check the above API operation with the IT department and let me know the results. |
@yeneastgate as mentioned in this comment when using the german names of the countries everything works fine. For that reason we want to investigate further but could not find how the plugin is "building" the email content. would you please be so kind and let us know where we can find how the plugin is "building" the email? |
@fredericalpers I will check and let you know asap. |
|
As mentioned in this comment from september 6, more specifically
Please implement a singleselect for both backend and frontend that's displaying the german full name of the countries such as Deutschland, Frankreich, Spanien etc. that are available in onOffice enterprise. Also use this full name to transfer the data into onOffice enterprise and via email. |
@fredericalpers Ok, I will check |
@fredericalpers |
@yeneastgate https://apidoc.onoffice.de/actions/informationen-abfragen/single-and-multiselect-values/ shouldn't it be possible to display the german full name using the "title" of the response? The value of "title" should also be the one being displayed in the e-mail. In the attached XML however it should still use the corresponding ISO 3166-1 alpha-3, so onOffice enterprise can correctly interpret the value. |
@fredericalpers After researching again I found that:
=> Yes, it is impossible to display the German full name using the "title" of the response When using the "contactaddress" API to send the email. I also tried implementing testing on branch "35108-implement-change-land-field-input-to-single-select" Step 1: Generate the "email body content" on the "onoffice wordpress plugin" side with the "sendmail" old API. 540_cmt.mp4So I think:
I checked again and I did not find => Please check with the IT department generated miss |
When using this, the transmission in the mail works as intended, correct? The XML-Tag seems not to be necessary. It's currently not in the feedback.xml file which is attached to the email but the countries are transmitted to onOffice enterprise correctly. |
@fredericalpers your last response is a little bit confusing for us. Let me try to summarize our understanding, please help to confirm
Question:
If needed we can schedule a call to take about |
Discussed in #535
Originally posted by fredericalpers May 26, 2023
Current state
The "Land" field is displayed as an input field in the plugin and in the frontend. However it is a single select in onOffice enterprise. This causes problems.
Forms can not be submitted if a country name like "France" is entered. It is only possible to sent a form when typing the value from onOffice enterprise "10" for France. If the input is 10 then the form is sent and also an address will be created.
If the fieldname "FRA" is entered, the form will be sent with "no data" to the e-mail but in onOffice enterprise the correct country will be added to the address.
Edit: deleted the investigation part
Desired state
In the plugin and in the frontend, the field must also be a single select. All countries that the customers have activated in onOffice enterprise should be selectable here.
The text was updated successfully, but these errors were encountered: