shajipappan Contributor.
Contributor.
350 views

Modifying form field

Hi guys ,

I am trying to create a html string type field in a form. I need to display a message in the form besides a field (for eg: "select a valid value") and i need to display this message in RED color.
I am using a global list for displaying this field as i need to display it in multiple languages based on the user locality.
The global list will contain the string that needs to be displayed and i am using that result in the form field (properties-html content).
I need to display this message in two places in the form. One while loading the form and the other while selecting a date field in the form (onchange of the field).
I tried to implement it and i have tried modifying the field cell style and label cell style but i am not able to display it in red color.

Can anyone help me in this issue?


Thanks
Labels (1)
0 Likes
1 Reply
wschreiber1 Absent Member.
Absent Member.

Re: Modifying form field

Wouldn't it be easier to insert a 'Title' field with the localized alert?

It can be shown/hidden based on your form logic (like based on the
presence of a value in that other field), it can contain HTML tags, and
will automatically be displayed in the user's locale.

The alternative would be using some jQuery code that injects your alert.

Wolfgang

On 04/05/2018 08:04, shajipappan wrote:
>
> Hi guys ,
>
> I am trying to create a html string type field in a form. I need to
> display a message in the form besides a field (for eg: "select a valid
> value") and i need to display this message in RED color.
> I am using a global list for displaying this field as i need to display
> it in multiple languages based on the user locality.
> The global list will contain the string that needs to be displayed and i
> am using that result in the form field (properties-html content).
> I need to display this message in two places in the form. One while
> loading the form and the other while selecting a date field in the form
> (onchange of the field).
> I tried to implement it and i have tried modifying the field cell style
> and label cell style but i am not able to display it in red color.
>
> Can anyone help me in this issue?
>
>
> Thanks
>
>

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.