Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Submitting form data through second language (Arabic)
Dear All,
I am using a normal liferay Form using both languages Arabic & English yet the form data does not submit using the arabic language and i am faced with the following error " Error: there is no specified value for the field"
Noting that my only validation to this field is making sure the field is not empty - if i remove this validation the form submission works fine.
Can you please explain to me how to resolve this issue i believe that for some reason whenever i fill anything in the field using the Arabic translated form liferay does not submit the value when i click submit therefore i receive this error.
Im Using Liferay 7.1
I am using a normal liferay Form using both languages Arabic & English yet the form data does not submit using the arabic language and i am faced with the following error " Error: there is no specified value for the field"
Noting that my only validation to this field is making sure the field is not empty - if i remove this validation the form submission works fine.
Can you please explain to me how to resolve this issue i believe that for some reason whenever i fill anything in the field using the Arabic translated form liferay does not submit the value when i click submit therefore i receive this error.
Im Using Liferay 7.1
I think you are using a multilingual field that has validation like required. so before submitting data put an alert and display your entered value on both languages.
Hello Thanks for the reply, can you please elaborate how is this done?
Add onsubmit event over the form as below
<aui:form onSubmit="validateForm()"> .... </aui:form>
add javascript function as below
<script>
function validateForm() {
var fieldId=$("#fieldId").val();//please replace fieldId with your text field id
alert(fieldId); // check which value coming from the field.
}
</script>
<aui:form onSubmit="validateForm()"> .... </aui:form>
add javascript function as below
<script>
function validateForm() {
var fieldId=$("#fieldId").val();//please replace fieldId with your text field id
alert(fieldId); // check which value coming from the field.
}
</script>
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™