Use Lookup as a float or int value

I would like to be able to use Lookup as a float or int value, for instance like:
other_parameter = IntegerField("another parameter", min=1000, max=10000)
param = IntegerField("sample", min=min(10, 0.1 * Lookup("other_parameter"))

Hi @thomasvdl ,

Thank you for your feature request. I believe what you want to achieve is a dynamic way of setting the minimum and maximum of a NumberField or IntegerField. This feature request was already described here:

For visibility, this is already possible by using callback function: User input, fields and buttons - Hide a field | VIKTOR Documentation

I think you are right and upvoted the other request :+1:

1 Like