Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Required Fields and Dropdown Help

Avatar

Level 1

I am trying to create a timesheet in Livecycle to replace the current form I have in Excel. I am still a beginner w/ LiveCycle and this is the first real issue I have had in quite some time. I am having trouble requring a field based on a choice.

The timesheet is set up as follows:

Timesheet Screenshot.png

In my excel spreadsheet when you choose Project, the Customer: Job Field in the same row turns red, indicating that it is now a required field. If you choose Overhead the Explanation field in the same row turns red, indicating that is is now a required field. I would either like to do the same thing with this form (turns red) or actually make the field required, whatever is simpler.

Can anyone help me out with this? I am very lost. If it is not possible to change fields based on dropdown selections does anyone have any alternative suggestions? Any and all help is very much appricated.

1 Accepted Solution

Avatar

Correct answer by
Level 10

You can do the following way..
Exit event of the Dropdown with Java Script as language.

if(DropDown1.rawValue == "Project"){
Customer.mandatory = "error";
JobField.mandatory = "error";
}

You can replace the field names with the actual names in your PDF.

If you want to enable mandatory you set the property "error"

to disable you set property to "disabled".

Thanks

Srini

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

You can do the following way..
Exit event of the Dropdown with Java Script as language.

if(DropDown1.rawValue == "Project"){
Customer.mandatory = "error";
JobField.mandatory = "error";
}

You can replace the field names with the actual names in your PDF.

If you want to enable mandatory you set the property "error"

to disable you set property to "disabled".

Thanks

Srini

Avatar

Level 1

thank you very much for your help. this was very simple and easy.

have a great day!