Disabling controls using Transformations

Sherry Collins asked on May 23, 2015 00:42

I have a customized blog which I have added 3 new fields. One is a boolean and the other two are date fields.

The checkbox indicates whether or not the blog will go into the Featured Section or not. The dates say how long the article stays in the Featured Article Section.

My question is can I use macros to disable the date fields when the checkbox is not checked. Been looking around and can't find anything on point. I don't see any other way to do it.

Any help is appreciated

Recent Answers


Charles Matvchuk answered on May 23, 2015 16:01

user Javascript

0 votesVote for this answer Mark as a Correct answer

Sherry Collins answered on May 23, 2015 16:31

I wrote a jQuery to do this, but I don't know how to get it wired up to the blog post design page.

The Content Managers will be able to come in and set various properties. How do I get this script to get played whenever the checkbox is clicked? If I place the script in the Javascript list, then it does not play.

Thanks for taking time to answer.

0 votesVote for this answer Mark as a Correct answer

Charles Matvchuk answered on May 24, 2015 04:42

Do you have jQuery linked to the page? Did you attach the script to the actual checkbox? You would do this via dom.

0 votesVote for this answer Mark as a Correct answer

Sherry Collins answered on May 25, 2015 01:13

jquery is enabled for the site. Do you have an example of how you attached a script to a checkbox using Kentico.

0 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on May 26, 2015 08:10

Sheryl,

Please take a look at answers provided to you on this thread by Brenden and I.

http://devnet.kentico.com/questions/javascript-web-parts

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.