Jump to content

Field depencency on required field


psy
 Share

Recommended Posts

After trawling/trying everything this forum and everything I could search for on the topic, I couldn't find a solution to my problem.

Scenario:

I have a Fieldtype Options field as radio buttons.

It's a required field 'display_price' with a default value of, 'Price'. The other choice is 'Text'.

To preset a radio field with a default value it must be 'required'. 

I have fields that show/hide dependent on the value of 'display_price'.

If I don't set 'display_price' as a required field, the page edit screen throws a warning that the default cannot be set.

When 'required' is set, on the admin page edit, the show/hide works perfectly. However, regardless of the choice of the radio field, the dependent field's value is never saved.

Removing the 'required' status of the 'display_price' field results in the associated subfield being saved.

HOWEVER, from the client's POV, it's necessary that the 'display_price' be a required field.

Help!

TIA

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...