Jump to content
adrianmak

could visability of a field depend on another field which is a page field ?

Recommended Posts

There is a page field say, attach_file  value of either yes or no

another file field will depend on that field when 'yes' is selected.

 

I  tried  attach_file.title='yes' or attach_file->title='yes' , both are not working

Share this post


Link to post
Share on other sites

Does this not work?

if( strtolower( $attach_file->title ) == 'yes' ) {
   // do whatever
}

 

Share this post


Link to post
Share on other sites

Are you talking about inputfield dependencies? From the docs...

Quote

to match a specific page in a page reference field, you should match the ID

 

  • Like 2

Share this post


Link to post
Share on other sites
3 hours ago, Robin S said:

Are you talking about inputfield dependencies? From the docs...

 

Thanks~~~~~

  • Like 1

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...